home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-04-24 | 6.3 MB | [Guid/DanR] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: MacTech Vol 02-1986
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Jul 14 13:28:43 1995, modified Wed Apr 24 09:28:46 1996, creator 'DanR', type 'Guid', 5212768 bytes "MacTech Vol 02-1986" , at 0x4f8ae0 1351676 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
100%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [Guid] |
macFileCreator | [DanR] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 4d 61 63 54 65 63 | 68 20 56 6f 6c 20 30 32 |..MacTec|h Vol 02|
|00000010| 2d 31 39 38 36 00 00 00 | 00 00 00 00 00 00 00 00 |-1986...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 47 75 69 64 44 61 6e | 52 01 00 00 00 00 00 00 |.GuidDan|R.......|
|00000050| 00 00 00 00 4f 8a 60 00 | 14 9f fc ac 2c 59 cb ad |....O.`.|....,Y..|
|00000060| a3 dd 0e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d2 9d 00 00 |........|........|
|00000080| 4e 47 4d 43 00 5d 44 52 | 00 00 00 00 00 06 54 6f |NGMC.]DR|......To|
|00000090| 77 65 72 73 00 ff 01 02 | 00 00 00 0c 00 09 00 0e |wers....|........|
|000000a0| c2 c2 fb 00 32 4e 75 6d | 62 65 72 3a 97 32 00 00 |....2Num|ber:.2..|
|000000b0| 00 18 00 09 00 11 c2 c2 | 49 73 73 75 65 20 4e 75 |........|Issue Nu|
|000000c0| 6d 62 65 72 3a a2 31 00 | 00 00 00 24 00 09 00 1b |mber:.1.|...$....|
|000000d0| c2 c2 43 6f 6c 75 6d 6e | 20 54 61 67 3a b0 54 68 |..Column| Tag:.Th|
|000000e0| 72 65 61 64 65 64 20 43 | 6f 64 65 00 00 00 00 5a |readed C|ode....Z|
|000000f0| 00 09 00 27 c4 c3 41 6e | 69 6d 61 74 65 64 20 48 |...'..An|imated H|
|00000100| 61 6e 6f 69 20 54 6f 77 | 65 72 73 20 69 6e 20 4e |anoi Tow|ers in N|
|00000110| 45 4f 4e 80 01 71 f0 00 | 80 00 36 00 00 00 00 6f |EON..q..|..6....o|
|00000120| 00 09 00 3f c5 c5 42 79 | 20 4a ff 9a 72 67 20 4c |...?..By| J..rg L|
|00000130| 61 6e 67 6f 77 73 6b 69 | 2c 20 45 4d 42 4c 2c 20 |angowski|, EMBL, |
|00000140| 63 2f 6f 20 49 2e 4c 2e | 4c 2e 2c 20 47 72 65 6e |c/o I.L.|L., Gren|
|00000150| 6f 62 6c 65 20 43 65 64 | 65 78 2c 20 46 72 61 6e |oble Ced|ex, Fran|
|00000160| 63 65 2c 00 00 00 00 7b | 00 09 00 19 c5 4d 61 63 |ce,....{|.....Mac|
|00000170| 54 75 74 6f 72 20 45 64 | 69 74 6f 72 69 61 6c 20 |Tutor Ed|itorial |
|00000180| 42 6f 61 72 64 00 00 00 | 00 93 00 24 00 4c 4c 61 |Board...|...$.LLa|
|00000190| 74 65 6c 79 2c 20 77 65 | 20 68 61 76 65 20 68 61 |tely, we| have ha|
|000001a0| 64 20 61 20 6e 75 6d 62 | 65 72 20 6f 66 20 72 65 |d a numb|er of re|
|000001b0| 71 75 65 73 74 73 20 66 | 6f 72 20 61 20 63 6f 6c |quests f|or a col|
|000001c0| 75 6d 6e 20 6f 6e 20 4e | 45 4f 4e 2e 20 53 69 6e |umn on N|EON. Sin|
|000001d0| 63 65 20 6e 6f 20 6e 65 | 6f 6e 00 00 00 9f 00 09 |ce no ne|on......|
|000001e0| 00 50 61 72 74 69 63 6c | 65 73 20 68 61 76 65 20 |.Particl|es have |
|000001f0| 62 65 65 6e 20 66 6f 72 | 74 68 20 63 6f 6d 69 6e |been for|th comin|
|00000200| 67 2c 20 49 20 68 61 76 | 65 20 62 65 65 6e 20 61 |g, I hav|e been a|
|00000210| 73 6b 65 64 20 74 6f 20 | 74 65 6d 70 6f 72 61 72 |sked to |temporar|
|00000220| 69 6c 79 20 73 77 69 74 | 63 68 20 66 72 6f 6d 20 |ily swit|ch from |
|00000230| 6d 79 00 00 00 ab 00 09 | 00 57 75 73 75 61 6c 20 |my......|.Wusual |
|00000240| 46 6f 72 74 68 20 72 61 | 6d 62 6c 69 6e 67 73 20 |Forth ra|mblings |
|00000250| 74 6f 20 4e 45 4f 4e 2e | 20 53 69 6e 63 65 20 4e |to NEON.| Since N|
|00000260| 45 4f 4e 20 69 73 20 73 | 6f 20 63 6c 6f 73 65 20 |EON is s|o close |
|00000270| 74 6f 20 46 6f 72 74 68 | 2c 20 77 65 20 68 61 76 |to Forth|, we hav|
|00000280| 65 20 64 65 63 69 64 65 | 64 20 74 6f 20 73 68 6f |e decide|d to sho|
|00000290| 77 00 00 00 00 b7 00 09 | 00 55 61 20 4e 45 4f 4e |w.......|.Ua NEON|
|000002a0| 20 65 78 61 6d 70 6c 65 | 20 74 68 69 73 20 6d 6f | example| this mo|
|000002b0| 6e 74 68 20 66 6f 72 20 | 61 20 63 68 61 6e 67 65 |nth for |a change|
|000002c0| 2e 20 49 6e 20 6c 69 67 | 68 74 20 6f 66 20 74 68 |. In lig|ht of th|
|000002d0| 69 73 2c 20 77 65 20 77 | 69 6c 6c 20 72 65 2d 6e |is, we w|ill re-n|
|000002e0| 61 6d 65 20 74 68 69 73 | 20 63 6f 6c 75 6d 6e 00 |ame this| column.|
|000002f0| 00 00 00 c3 00 09 00 54 | 22 54 68 72 65 61 64 65 |.......T|"Threade|
|00000300| 64 20 43 6f 64 65 22 20 | 74 6f 20 63 6f 76 65 72 |d Code" |to cover|
|00000310| 20 61 6c 6c 20 74 68 65 | 20 46 6f 72 74 68 20 6c | all the| Forth l|
|00000320| 69 6b 65 20 6f 62 6a 65 | 63 74 20 6f 72 69 65 6e |ike obje|ct orien|
|00000330| 74 65 64 20 6c 61 6e 67 | 75 61 67 65 73 20 74 68 |ted lang|uages th|
|00000340| 61 74 20 61 72 65 20 46 | 6f 72 74 68 00 00 00 cf |at are F|orth....|
|00000350| 00 09 00 17 64 65 72 69 | 76 61 74 69 76 65 73 20 |....deri|vatives |
|00000360| 6f 6e 20 74 68 65 20 4d | 61 63 2e 00 00 00 00 db |on the M|ac......|
|00000370| 00 24 00 4c 54 68 65 20 | 70 72 69 6e 63 69 70 6c |.$.LThe |principl|
|00000380| 65 73 20 6f 66 20 6f 62 | 6a 65 63 74 20 6f 72 69 |es of ob|ject ori|
|00000390| 65 6e 74 65 64 20 70 72 | 6f 67 72 61 6d 6d 69 6e |ented pr|ogrammin|
|000003a0| 67 20 68 61 76 65 20 61 | 6c 72 65 61 64 79 20 62 |g have a|lready b|
|000003b0| 65 65 6e 20 65 78 70 6c | 61 69 6e 65 64 20 69 6e |een expl|ained in|
|000003c0| 00 00 00 e7 00 09 00 51 | 73 65 76 65 72 61 6c 20 |.......Q|several |
|000003d0| 65 61 72 6c 69 65 72 20 | 63 6f 6c 75 6d 6e 73 20 |earlier |columns |
|000003e0| 28 73 65 65 20 4c 49 53 | 50 20 56 31 23 36 2c 20 |(see LIS|P V1#6, |
|000003f0| 4e 45 4f 4e 20 56 31 23 | 38 29 2c 20 73 6f 20 49 |NEON V1#|8), so I|
|00000400| 20 61 6d 20 6e 6f 74 20 | 67 6f 69 6e 67 20 74 6f | am not |going to|
|00000410| 20 64 77 65 6c 6c 20 6f | 6e 00 00 00 00 f3 00 09 | dwell o|n.......|
|00000420| 00 57 74 68 61 74 20 68 | 65 72 65 2e 20 52 61 74 |.Wthat h|ere. Rat|
|00000430| 68 65 72 2c 20 77 65 20 | 61 72 65 20 67 6f 69 6e |her, we |are goin|
|00000440| 67 20 74 6f 20 6c 6f 6f | 6b 20 61 74 20 74 68 65 |g to loo|k at the|
|00000450| 20 66 61 6d 6f 75 73 20 | 54 6f 77 65 72 73 20 6f | famous |Towers o|
|00000460| 66 20 48 61 6e 6f 69 20 | 61 6c 67 6f 72 69 74 68 |f Hanoi |algorith|
|00000470| 6d 20 66 72 6f 6d 20 61 | 6e 00 00 00 00 ff 00 09 |m from a|n.......|
|00000480| 00 54 6f 62 6a 65 63 74 | 2d 6f 72 69 65 6e 74 65 |.Tobject|-oriente|
|00000490| 64 20 70 6f 69 6e 74 20 | 6f 66 20 76 69 65 77 2c |d point |of view,|
|000004a0| 20 67 61 69 6e 69 6e 67 | 20 73 6f 6d 65 20 6f 6e | gaining| some on|
|000004b0| 2d 68 61 6e 64 73 20 65 | 78 70 65 72 69 65 6e 63 |-hands e|xperienc|
|000004c0| 65 20 77 69 74 68 20 61 | 6e 20 65 78 61 6d 70 6c |e with a|n exampl|
|000004d0| 65 20 74 68 61 74 00 00 | 01 0b 00 09 00 39 2d 20 |e that..|.....9- |
|000004e0| 49 20 66 65 65 6c 20 2d | 20 69 73 20 70 61 72 74 |I feel -| is part|
|000004f0| 69 63 75 6c 61 72 6c 79 | 20 61 70 70 72 6f 70 72 |icularly| appropr|
|00000500| 69 61 74 65 20 66 6f 72 | 20 74 68 69 73 20 61 70 |iate for| this ap|
|00000510| 70 72 6f 61 63 68 2e 00 | 00 00 01 17 00 24 00 52 |proach..|.....$.R|
|00000520| 4c 65 74 27 73 20 72 65 | 63 61 6c 6c 3a 20 54 68 |Let's re|call: Th|
|00000530| 65 20 27 74 6f 77 65 72 | 73 27 20 61 72 65 20 74 |e 'tower|s' are t|
|00000540| 68 72 65 65 20 73 74 61 | 63 6b 73 20 6f 66 20 64 |hree sta|cks of d|
|00000550| 69 73 6b 73 20 28 46 69 | 67 2e 20 31 29 2e 20 54 |isks (Fi|g. 1). T|
|00000560| 68 65 20 6c 65 66 74 6d | 6f 73 74 20 6f 6e 65 20 |he leftm|ost one |
|00000570| 69 73 00 00 01 23 00 09 | 00 58 66 69 6c 6c 65 64 |is...#..|.Xfilled|
|00000580| 20 77 69 74 68 20 6e 20 | 64 69 73 6b 73 20 73 74 | with n |disks st|
|00000590| 61 63 6b 65 64 20 6f 6e | 20 74 6f 70 20 6f 66 20 |acked on| top of |
|000005a0| 6f 6e 65 20 61 6e 6f 74 | 68 65 72 20 69 6e 20 6f |one anot|her in o|
|000005b0| 72 64 65 72 20 6f 66 20 | 64 65 63 72 65 61 73 69 |rder of |decreasi|
|000005c0| 6e 67 20 73 69 7a 65 2c | 20 74 68 65 20 6f 74 68 |ng size,| the oth|
|000005d0| 65 72 00 00 01 2f 00 09 | 00 54 74 77 6f 20 61 72 |er.../..|.Ttwo ar|
|000005e0| 65 20 69 6e 69 74 69 61 | 6c 6c 79 20 65 6d 70 74 |e initia|lly empt|
|000005f0| 79 2e 20 54 68 65 20 6f | 62 6a 65 63 74 69 76 65 |y. The o|bjective|
|00000600| 20 69 73 20 74 6f 20 6d | 6f 76 65 20 74 68 65 20 | is to m|ove the |
|00000610| 64 69 73 6b 73 20 66 72 | 6f 6d 20 74 68 65 20 6c |disks fr|om the l|
|00000620| 65 66 74 6d 6f 73 74 20 | 74 6f 20 74 68 65 00 00 |eftmost |to the..|
|00000630| 01 3b 00 09 00 59 72 69 | 67 68 74 6d 6f 73 74 20 |.;...Yri|ghtmost |
|00000640| 70 6f 73 69 74 69 6f 6e | 2c 20 6f 6e 65 20 62 79 |position|, one by|
|00000650| 20 6f 6e 65 2c 20 69 6e | 20 73 75 63 68 20 61 20 | one, in| such a |
|00000660| 77 61 79 20 74 68 61 74 | 20 61 20 6c 61 72 67 65 |way that| a large|
|00000670| 72 20 64 69 73 6b 20 69 | 73 20 6e 65 76 65 72 20 |r disk i|s never |
|00000680| 70 75 74 20 6f 6e 20 74 | 6f 70 20 6f 66 20 61 00 |put on t|op of a.|
|00000690| 00 00 01 47 00 09 00 55 | 73 6d 61 6c 6c 65 72 20 |...G...U|smaller |
|000006a0| 6f 6e 65 2e 20 54 68 69 | 73 20 77 6f 72 6b 73 20 |one. Thi|s works |
|000006b0| 69 66 20 6f 6e 65 20 75 | 73 65 73 20 74 68 65 20 |if one u|ses the |
|000006c0| 6d 69 64 64 6c 65 20 70 | 6f 73 69 74 69 6f 6e 20 |middle p|osition |
|000006d0| 61 73 20 61 20 27 73 63 | 72 61 74 63 68 70 61 64 |as a 'sc|ratchpad|
|000006e0| 27 20 28 74 72 79 20 69 | 74 20 6f 75 74 00 00 00 |' (try i|t out...|
|000006f0| 01 53 00 09 00 54 77 69 | 74 68 20 70 69 65 63 65 |.S...Twi|th piece|
|00000700| 73 20 6f 66 20 70 61 70 | 65 72 29 2c 20 65 76 65 |s of pap|er), eve|
|00000710| 6e 20 74 68 6f 75 67 68 | 20 74 68 69 73 20 69 73 |n though| this is|
|00000720| 20 61 20 72 61 74 68 65 | 72 20 74 69 72 65 73 6f | a rathe|r tireso|
|00000730| 6d 65 20 70 72 6f 63 65 | 64 75 72 65 2c 20 69 66 |me proce|dure, if|
|00000740| 20 70 65 72 66 6f 72 6d | 65 64 00 00 01 5f 00 09 | perform|ed..._..|
|00000750| 00 09 6d 61 6e 75 61 6c | 6c 79 2e 00 00 00 02 78 |..manual|ly.....x|
|00000760| 00 2a 00 05 f0 00 81 01 | 60 00 00 00 02 8e 00 5e |.*......|`......^|
|00000770| 00 39 c5 c5 46 69 67 2e | 20 31 3a 20 49 6e 69 74 |.9..Fig.| 1: Init|
|00000780| 69 61 6c 20 61 6e 64 20 | 66 69 6e 61 6c 20 70 6f |ial and |final po|
|00000790| 73 69 74 69 6f 6e 73 20 | 6f 66 20 54 6f 77 65 72 |sitions |of Tower|
|000007a0| 73 20 6f 66 20 48 61 6e | 6f 69 2e 00 00 00 02 a4 |s of Han|oi......|
|000007b0| 00 24 00 50 54 68 69 73 | 20 69 73 2c 20 6f 66 20 |.$.PThis| is, of |
|000007c0| 63 6f 75 72 73 65 2c 20 | 77 68 65 72 65 20 4d 61 |course, |where Ma|
|000007d0| 63 20 63 6f 6d 65 73 20 | 69 6e 3b 20 61 6e 64 20 |c comes |in; and |
|000007e0| 74 68 65 20 61 6c 67 6f | 72 69 74 68 6d 20 74 6f |the algo|rithm to|
|000007f0| 20 73 6f 6c 76 65 20 74 | 68 65 20 70 75 7a 7a 6c | solve t|he puzzl|
|00000800| 65 20 69 73 00 00 02 b0 | 00 09 00 55 76 65 72 79 |e is....|...Uvery|
|00000810| 20 73 68 6f 72 74 20 69 | 66 20 77 72 69 74 74 65 | short i|f writte|
|00000820| 6e 20 72 65 63 75 72 73 | 69 76 65 6c 79 2e 20 49 |n recurs|ively. I|
|00000830| 6e 20 70 73 65 75 64 6f | 2d 50 61 73 63 61 6c 20 |n pseudo|-Pascal |
|00000840| 69 74 20 77 6f 75 6c 64 | 20 6c 6f 6f 6b 20 6c 69 |it would| look li|
|00000850| 6b 65 20 74 68 69 73 20 | 28 73 65 65 20 61 6c 73 |ke this |(see als|
|00000860| 6f 00 00 00 02 bc 00 09 | 00 26 4a 6f 68 6e 20 42 |o.......|.&John B|
|00000870| 6f 67 61 6e 27 73 20 4d | 6f 64 75 6c 61 2d 32 20 |ogan's M|odula-2 |
|00000880| 63 6f 6c 75 6d 6e 20 69 | 6e 20 56 31 23 36 29 3a |column i|n V1#6):|
|00000890| 00 00 02 d3 00 12 00 34 | c6 c6 70 72 6f 63 65 64 |.......4|..proced|
|000008a0| 75 72 65 20 68 61 6e 6f | 69 20 28 6e 2c 20 73 74 |ure hano|i (n, st|
|000008b0| 61 72 74 2c 20 69 6e 74 | 65 72 2c 20 66 69 6e 69 |art, int|er, fini|
|000008c0| 73 68 3a 69 6e 74 65 67 | 65 72 29 3b 00 00 02 de |sh:integ|er);....|
|000008d0| 00 12 00 0b c6 c6 20 20 | 20 20 62 65 67 69 6e 00 |...... | begin.|
|000008e0| 00 00 02 e9 00 12 00 13 | c6 c6 20 20 20 20 20 69 |........|.. i|
|000008f0| 66 20 6e 3c 3e 30 20 74 | 68 65 6e 00 00 00 02 f4 |f n<>0 t|hen.....|
|00000900| 00 12 00 08 c6 89 c6 62 | 65 67 69 6e 00 00 02 ff |.......b|egin....|
|00000910| 00 12 00 25 c6 89 c6 68 | 61 6e 6f 69 20 28 6e 2d |...%...h|anoi (n-|
|00000920| 31 2c 20 73 74 61 72 74 | 2c 20 66 69 6e 69 73 68 |1, start|, finish|
|00000930| 2c 20 69 6e 74 65 72 29 | 3b 00 00 00 03 0a 00 12 |, inter)|;.......|
|00000940| 00 1b c6 89 c6 6d 6f 76 | 65 20 28 6e 2c 20 73 74 |.....mov|e (n, st|
|00000950| 61 72 74 2c 20 66 69 6e | 69 73 68 29 3b 00 00 00 |art, fin|ish);...|
|00000960| 03 15 00 12 00 24 c6 89 | c6 68 61 6e 6f 69 20 28 |.....$..|.hanoi (|
|00000970| 6e 2d 31 2c 20 69 6e 74 | 65 72 2c 20 73 74 61 72 |n-1, int|er, star|
|00000980| 74 2c 20 66 69 6e 69 73 | 68 29 00 00 03 20 00 12 |t, finis|h)... ..|
|00000990| 00 06 c6 89 c6 65 6e 64 | 00 00 03 2b 00 12 00 0a |.....end|...+....|
|000009a0| c6 c6 20 20 20 20 65 6e | 64 3b 00 00 03 48 00 09 |.. en|d;...H..|
|000009b0| 00 58 77 68 65 72 65 20 | 6e 20 69 73 20 74 68 65 |.Xwhere |n is the|
|000009c0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 69 73 6b 73 | number |of disks|
|000009d0| 2c 20 61 6e 64 20 73 74 | 61 72 74 2c 20 69 6e 74 |, and st|art, int|
|000009e0| 65 72 20 61 6e 64 20 66 | 69 6e 69 73 68 20 64 65 |er and f|inish de|
|000009f0| 6e 6f 74 65 20 74 68 65 | 20 73 74 61 72 74 69 6e |note the| startin|
|00000a00| 67 2c 20 73 63 72 61 74 | 63 68 00 00 03 54 00 09 |g, scrat|ch...T..|
|00000a10| 00 54 61 6e 64 20 66 69 | 6e 61 6c 20 70 6f 73 69 |.Tand fi|nal posi|
|00000a20| 74 69 6f 6e 73 20 66 6f | 72 20 74 68 65 20 64 69 |tions fo|r the di|
|00000a30| 73 6b 73 2e 20 6d 6f 76 | 65 20 69 73 20 61 20 70 |sks. mov|e is a p|
|00000a40| 72 6f 63 65 64 75 72 65 | 20 74 68 61 74 20 28 73 |rocedure| that (s|
|00000a50| 6f 6d 65 68 6f 77 29 20 | 6d 6f 76 65 73 20 74 68 |omehow) |moves th|
|00000a60| 65 20 64 69 73 6b 00 00 | 03 60 00 09 00 1a 66 72 |e disk..|.`....fr|
|00000a70| 6f 6d 20 6f 6e 65 20 73 | 74 61 63 6b 20 74 6f 20 |om one s|tack to |
|00000a80| 61 6e 6f 74 68 65 72 2e | 00 00 03 6c 00 24 00 51 |another.|...l.$.Q|
|00000a90| 4f 4b 2c 20 73 6f 20 69 | 66 20 77 65 20 73 65 74 |OK, so i|f we set|
|00000aa0| 20 75 70 20 61 20 73 74 | 61 63 6b 20 6f 66 20 64 | up a st|ack of d|
|00000ab0| 69 73 6b 73 2c 20 70 72 | 6f 76 69 64 65 20 74 68 |isks, pr|ovide th|
|00000ac0| 72 65 65 20 74 6f 77 65 | 72 73 20 74 6f 20 70 75 |ree towe|rs to pu|
|00000ad0| 74 20 74 68 65 6d 20 6f | 6e 20 74 6f 2c 20 61 6e |t them o|n to, an|
|00000ae0| 64 00 00 00 03 78 00 09 | 00 52 65 78 65 63 75 74 |d....x..|.Rexecut|
|00000af0| 65 20 74 68 69 73 20 70 | 72 6f 63 65 64 75 72 65 |e this p|rocedure|
|00000b00| 2c 20 77 65 20 73 68 6f | 75 6c 64 20 62 65 20 61 |, we sho|uld be a|
|00000b10| 62 6c 65 20 74 6f 20 77 | 61 74 63 68 20 68 6f 77 |ble to w|atch how|
|00000b20| 20 4d 61 63 69 6e 74 6f | 73 68 20 73 6f 6c 76 65 | Macinto|sh solve|
|00000b30| 73 20 74 68 65 20 54 6f | 77 65 72 73 00 00 03 84 |s the To|wers....|
|00000b40| 00 09 00 08 70 72 6f 62 | 6c 65 6d 2e 00 00 03 90 |....prob|lem.....|
|00000b50| 00 24 00 4a fb 00 2f 61 | 72 65 20 74 77 6f 20 74 |.$.J../a|re two t|
|00000b60| 68 69 6e 67 73 20 74 6f | 20 6e 6f 74 69 63 65 3a |hings to| notice:|
|00000b70| 20 46 69 72 73 74 2c 20 | 74 68 65 20 64 65 66 69 | First, |the defi|
|00000b80| 6e 69 74 69 6f 6e 20 69 | 73 20 6f 62 76 69 6f 75 |nition i|s obviou|
|00000b90| 73 6c 79 20 72 65 63 75 | 72 73 69 76 65 2c 00 00 |sly recu|rsive,..|
|00000ba0| 03 9c 00 09 00 38 73 65 | 63 6f 6e 64 2c 20 77 65 |.....8se|cond, we|
|00000bb0| 20 68 61 76 65 20 74 6f | 20 62 65 20 63 61 72 65 | have to| be care|
|00000bc0| 66 75 6c 20 68 6f 77 20 | 74 6f 20 72 65 70 72 65 |ful how |to repre|
|00000bd0| 73 65 6e 74 20 6f 75 72 | 20 64 61 74 61 2e 00 00 |sent our| data...|
|00000be0| 03 b2 00 5e 00 2b c2 c2 | 52 65 63 75 72 73 69 76 |...^.+..|Recursiv|
|00000bf0| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 73 20 2d 20 |e defini|tions - |
|00000c00| 4e 45 4f 4e 20 61 6e 64 | 20 4d 61 63 46 6f 72 74 |NEON and| MacFort|
|00000c10| 68 00 00 00 03 c3 00 24 | 00 52 41 20 76 65 72 79 |h......$|.RA very|
|00000c20| 20 73 69 6d 70 6c 65 20 | 72 65 63 75 72 73 69 76 | simple |recursiv|
|00000c30| 65 20 70 72 6f 63 65 64 | 75 72 65 20 69 73 20 74 |e proced|ure is t|
|00000c40| 68 65 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6f 66 |he defin|ition of|
|00000c50| 20 74 68 65 20 66 61 63 | 74 6f 72 69 61 6c 20 6f | the fac|torial o|
|00000c60| 66 20 61 6e 20 69 6e 74 | 65 67 65 72 00 00 03 cf |f an int|eger....|
|00000c70| 00 09 00 4d 6e 75 6d 62 | 65 72 2c 20 fd 00 34 69 |...Mnumb|er, ..4i|
|00000c80| 73 20 67 69 76 65 6e 20 | 61 74 20 74 68 65 20 76 |s given |at the v|
|00000c90| 65 72 79 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |ery begi|nning of|
|00000ca0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 65 78 61 | the pro|gram exa|
|00000cb0| 6d 70 6c 65 20 28 fd 00 | 21 31 29 2e 20 54 68 69 |mple (..|!1). Thi|
|00000cc0| 73 00 00 00 03 db 00 09 | 00 53 64 65 66 69 6e 69 |s.......|.Sdefini|
|00000cd0| 74 69 6f 6e 20 77 6f 72 | 6b 73 20 69 6e 20 4e 45 |tion wor|ks in NE|
|00000ce0| 4f 4e 3b 20 79 6f 75 20 | 6d 61 79 20 72 65 66 65 |ON; you |may refe|
|00000cf0| 72 20 74 6f 20 61 20 77 | 6f 72 64 20 77 69 74 68 |r to a w|ord with|
|00000d00| 69 6e 20 74 68 65 20 64 | 65 66 69 6e 69 74 69 6f |in the d|efinitio|
|00000d10| 6e 20 6f 66 20 74 68 65 | 20 77 6f 72 64 00 00 00 |n of the| word...|
|00000d20| 03 e7 00 09 00 5a 69 74 | 73 65 6c 66 20 28 42 79 |.....Zit|self (By|
|00000d30| 20 74 68 65 20 77 61 79 | 2c 20 65 76 65 6e 20 69 | the way|, even i|
|00000d40| 66 20 79 6f 75 20 77 65 | 72 65 6e 27 74 20 61 6c |f you we|ren't al|
|00000d50| 6c 6f 77 65 64 20 74 6f | 20 64 6f 20 69 74 20 74 |lowed to| do it t|
|00000d60| 68 61 74 20 77 61 79 2c | 20 79 6f 75 20 63 6f 75 |hat way,| you cou|
|00000d70| 6c 64 20 72 65 73 6f 72 | 74 20 74 6f 20 74 68 65 |ld resor|t to the|
|00000d80| 00 00 03 f3 00 09 00 15 | 66 6f 72 77 61 72 64 20 |........|forward |
|00000d90| 64 65 63 6c 61 72 61 74 | 69 6f 6e 29 2e 00 00 00 |declarat|ion)....|
|00000da0| 03 ff 00 24 00 4e 4d 61 | 63 46 6f 72 74 68 2c 20 |...$.NMa|cForth, |
|00000db0| 68 6f 77 65 76 65 72 2c | 20 73 65 74 73 20 74 68 |however,| sets th|
|00000dc0| 65 20 73 6d 75 64 67 65 | 20 62 69 74 20 69 6e 20 |e smudge| bit in |
|00000dd0| 74 68 65 20 76 6f 63 61 | 62 75 6c 61 72 79 20 77 |the voca|bulary w|
|00000de0| 68 69 6c 65 20 63 6f 6d | 70 69 6c 69 6e 67 20 61 |hile com|piling a|
|00000df0| 20 6e 65 77 00 00 04 0b | 00 09 00 51 64 65 66 69 | new....|...Qdefi|
|00000e00| 6e 69 74 69 6f 6e 3b 20 | fe 00 2f 66 6f 72 65 20 |nition; |../fore |
|00000e10| 74 68 65 20 77 6f 72 64 | 20 62 65 69 6e 67 20 64 |the word| being d|
|00000e20| 65 66 69 6e 65 64 20 69 | 73 20 6e 6f 74 20 6b 6e |efined i|s not kn|
|00000e30| 6f 77 6e 20 74 6f 20 74 | 68 65 20 fd 00 2c 61 74 |own to t|he ..,at|
|00000e40| 20 63 6f 6d 70 69 6c 65 | 20 74 69 6d 65 00 00 00 | compile| time...|
|00000e50| 04 17 00 09 00 58 61 6e | 64 20 63 61 6e 6e 6f 74 |.....Xan|d cannot|
|00000e60| 20 62 65 20 72 65 66 65 | 72 72 65 64 20 74 6f 20 | be refe|rred to |
|00000e70| 62 79 20 69 74 73 65 6c | 66 2e 20 59 6f 75 20 68 |by itsel|f. You h|
|00000e80| 61 76 65 20 70 72 6f 62 | 61 62 6c 79 20 73 65 65 |ave prob|ably see|
|00000e90| 6e 20 74 68 65 20 65 66 | 66 65 63 74 20 6f 66 20 |n the ef|fect of |
|00000ea0| 74 68 65 20 73 6d 75 64 | 67 65 20 62 69 74 00 00 |the smud|ge bit..|
|00000eb0| 04 23 00 09 00 53 61 6c | 72 65 61 64 79 3b 20 77 |.#...Sal|ready; w|
|00000ec0| 68 65 6e 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |hen the |compiler|
|00000ed0| 20 65 78 69 74 73 20 61 | 20 64 65 63 6c 61 72 61 | exits a| declara|
|00000ee0| 74 69 6f 6e 20 64 75 65 | 20 74 6f 20 61 6e 20 65 |tion due| to an e|
|00000ef0| 72 72 6f 72 2c 20 77 6f | 72 64 73 20 77 69 6c 6c |rror, wo|rds will|
|00000f00| 20 73 68 6f 77 20 74 68 | 65 00 00 00 04 2f 00 09 | show th|e..../..|
|00000f10| 00 59 66 69 72 73 74 20 | 6c 65 74 74 65 72 20 6f |.Yfirst |letter o|
|00000f20| 66 20 74 68 65 20 6c 61 | 74 65 73 74 20 64 65 66 |f the la|test def|
|00000f30| 69 6e 69 74 69 6f 6e 20 | 63 68 61 6e 67 65 64 20 |inition |changed |
|00000f40| 28 69 6e 20 66 61 63 74 | 2c 20 69 74 20 68 61 73 |(in fact|, it has|
|00000f50| 20 74 68 65 20 38 74 68 | 20 62 69 74 20 73 65 74 | the 8th| bit set|
|00000f60| 29 2e 20 20 4f 6e 65 20 | 63 61 6e 00 00 00 04 3b |). One |can....;|
|00000f70| 00 09 00 2d 65 61 73 69 | 6c 79 20 63 69 72 63 75 |...-easi|ly circu|
|00000f80| 6d 76 65 6e 74 20 74 68 | 69 73 20 72 65 73 74 72 |mvent th|is restr|
|00000f90| 69 63 74 69 6f 6e 20 62 | 79 20 77 72 69 74 69 6e |iction b|y writin|
|00000fa0| 67 00 00 00 04 52 00 12 | 00 1a c6 c6 3a 20 66 61 |g....R..|....: fa|
|00000fb0| 63 74 6f 72 69 61 6c 20 | 20 20 5b 20 73 6d 75 64 |ctorial | [ smud|
|00000fc0| 67 65 20 5d 00 00 04 5d | 00 12 00 31 c6 c6 20 20 |ge ]...]|...1.. |
|00000fd0| 20 64 75 70 20 69 66 20 | 64 75 70 20 31 2d 20 66 | dup if |dup 1- f|
|00000fe0| 61 63 74 6f 72 69 61 6c | 20 2a 20 65 6c 73 65 20 |actorial| * else |
|00000ff0| 64 72 6f 70 20 31 20 74 | 68 65 6e 20 3b 00 00 00 |drop 1 t|hen ;...|
|00001000| 04 68 00 12 00 08 c6 c6 | 73 6d 75 64 67 65 00 00 |.h......|smudge..|
|00001010| 04 85 00 09 00 57 69 2e | 65 2e 2c 20 65 78 65 63 |.....Wi.|e., exec|
|00001020| 75 74 69 6e 67 20 73 6d | 75 64 67 65 20 64 75 72 |uting sm|udge dur|
|00001030| 69 6e 67 20 74 68 65 20 | 63 6f 6d 70 69 6c 61 74 |ing the |compilat|
|00001040| 69 6f 6e 20 6f 66 20 66 | 61 63 74 6f 72 69 61 6c |ion of f|actorial|
|00001050| 20 61 6e 64 20 72 65 73 | 65 74 74 69 6e 67 20 69 | and res|etting i|
|00001060| 74 20 61 66 74 65 72 77 | 61 72 64 73 2e 00 00 00 |t afterw|ards....|
|00001070| 04 91 00 09 00 51 54 68 | 69 73 20 77 69 6c 6c 20 |.....QTh|is will |
|00001080| 67 69 76 65 20 61 20 77 | 6f 72 6b 69 6e 67 20 64 |give a w|orking d|
|00001090| 65 66 69 6e 69 74 69 6f | 6e 2c 20 77 69 74 68 69 |efinitio|n, withi|
|000010a0| 6e 20 74 68 65 20 6c 69 | 6d 69 74 20 74 68 61 74 |n the li|mit that|
|000010b0| 20 69 73 20 67 69 76 65 | 6e 20 62 79 20 74 68 65 | is give|n by the|
|000010c0| 20 33 32 2d 62 69 74 00 | 00 00 04 9d 00 09 00 26 | 32-bit.|.......&|
|000010d0| 6d 61 78 69 6d 75 6d 20 | 69 6e 74 65 67 65 72 20 |maximum |integer |
|000010e0| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 4d 61 63 69 |size of |the Maci|
|000010f0| 6e 74 6f 73 68 2e 00 00 | 04 b3 00 47 00 34 c2 c2 |ntosh...|...G.4..|
|00001100| 52 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 20 6f |Represen|tation o|
|00001110| 66 20 64 69 73 6b 73 20 | 61 6e 64 20 74 6f 77 65 |f disks |and towe|
|00001120| 72 73 20 61 73 20 4e 45 | 4f 4e 20 6f 62 6a 65 63 |rs as NE|ON objec|
|00001130| 74 73 00 00 04 c4 00 24 | 00 4f 53 69 6e 63 65 20 |ts.....$|.OSince |
|00001140| 77 65 20 61 72 65 2c 20 | 69 6e 20 66 61 63 74 2c |we are, |in fact,|
|00001150| 20 73 69 6d 75 6c 61 74 | 69 6e 67 20 6d 61 74 65 | simulat|ing mate|
|00001160| 72 69 61 6c 20 6f 62 6a | 65 63 74 73 2c 20 6d 6f |rial obj|ects, mo|
|00001170| 76 69 6e 67 20 74 68 65 | 6d 20 61 72 6f 75 6e 64 |ving the|m around|
|00001180| 20 61 6e 64 20 61 6c 73 | 6f 00 00 00 04 d0 00 09 | and als|o.......|
|00001190| 00 52 64 69 73 70 6c 61 | 79 69 6e 67 20 74 68 65 |.Rdispla|ying the|
|000011a0| 20 72 65 73 75 6c 74 20 | 6f 66 20 6f 75 72 20 73 | result |of our s|
|000011b0| 69 6d 75 6c 61 74 69 6f | 6e 20 6f 6e 20 74 68 65 |imulatio|n on the|
|000011c0| 20 73 63 72 65 65 6e 2c | 20 74 68 65 20 54 6f 77 | screen,| the Tow|
|000011d0| 65 72 73 20 6f 66 20 48 | 61 6e 6f 69 20 70 72 6f |ers of H|anoi pro|
|000011e0| 62 6c 65 6d 00 00 04 dc | 00 09 00 54 73 65 65 6d |blem....|...Tseem|
|000011f0| 73 20 74 6f 20 62 65 20 | 69 64 65 61 6c 79 20 73 |s to be |idealy s|
|00001200| 75 69 74 65 64 20 66 6f | 72 20 61 6e 20 6f 62 6a |uited fo|r an obj|
|00001210| 65 63 74 20 6f 72 69 65 | 6e 74 65 64 20 6c 61 6e |ect orie|nted lan|
|00001220| 67 75 61 67 65 20 6c 69 | 6b 65 20 4e 45 4f 4e 2e |guage li|ke NEON.|
|00001230| 20 57 65 20 63 6f 75 6c | 64 20 64 65 66 69 6e 65 | We coul|d define|
|00001240| 00 00 04 e8 00 09 00 56 | 27 64 69 73 6b 73 27 20 |.......V|'disks' |
|00001250| 61 73 20 6f 62 6a 65 63 | 74 73 20 74 68 61 74 20 |as objec|ts that |
|00001260| 63 61 6e 20 62 65 20 64 | 72 61 77 6e 2c 20 70 75 |can be d|rawn, pu|
|00001270| 74 20 6f 6e 20 74 6f 70 | 20 6f 66 20 6f 74 68 65 |t on top| of othe|
|00001280| 72 20 6f 62 6a 65 63 74 | 73 2c 20 63 61 6c 6c 65 |r object|s, calle|
|00001290| 64 20 27 74 6f 77 65 72 | 73 27 20 61 6e 64 00 00 |d 'tower|s' and..|
|000012a0| 04 f4 00 09 00 55 6d 6f | 76 65 64 20 62 65 74 77 |.....Umo|ved betw|
|000012b0| 65 65 6e 20 74 68 65 6d | 2e 20 54 68 65 20 74 6f |een them|. The to|
|000012c0| 77 65 72 73 20 77 69 6c | 6c 20 61 75 74 6f 6d 61 |wers wil|l automa|
|000012d0| 74 69 63 61 6c 6c 79 20 | 6b 65 65 70 20 74 72 61 |tically |keep tra|
|000012e0| 63 6b 20 6f 66 20 68 6f | 77 20 6d 61 6e 79 20 64 |ck of ho|w many d|
|000012f0| 69 73 6b 73 20 61 72 65 | 20 6f 6e 00 00 00 05 00 |isks are| on.....|
|00001300| 00 09 00 50 74 68 65 6d | 2c 20 74 68 65 20 64 69 |...Pthem|, the di|
|00001310| 73 6b 73 20 77 69 6c 6c | 20 27 6b 6e 6f 77 27 20 |sks will| 'know' |
|00001320| 77 68 61 74 20 74 6f 77 | 65 72 20 74 68 65 79 20 |what tow|er they |
|00001330| 61 72 65 20 6f 6e 20 61 | 6e 64 20 68 6f 77 20 74 |are on a|nd how t|
|00001340| 6f 20 27 64 72 61 77 20 | 74 68 65 6d 73 65 6c 76 |o 'draw |themselv|
|00001350| 65 73 27 2e 00 00 05 16 | 00 a9 00 12 c2 c2 54 68 |es'.....|......Th|
|00001360| 65 20 54 68 72 65 65 20 | 54 6f 77 65 72 73 00 00 |e Three |Towers..|
|00001370| 05 27 00 24 00 4a fb 00 | 2f 69 73 20 6f 6e 65 20 |.'.$.J..|/is one |
|00001380| 70 72 65 64 65 66 69 6e | 65 64 20 63 6c 61 73 73 |predefin|ed class|
|00001390| 20 69 6e 20 4e 45 4f 4e | 2c 20 6f 72 64 65 72 65 | in NEON|, ordere|
|000013a0| 64 2d 63 6f 6c 2c 20 74 | 68 61 74 20 72 65 70 72 |d-col, t|hat repr|
|000013b0| 65 73 65 6e 74 73 20 61 | 20 6c 69 73 74 20 6f 66 |esents a| list of|
|000013c0| 00 00 05 33 00 09 00 58 | 76 61 72 69 61 62 6c 65 |...3...X|variable|
|000013d0| 20 73 69 7a 65 2e 20 45 | 6c 65 6d 65 6e 74 73 20 | size. E|lements |
|000013e0| 6f 66 20 74 68 61 74 20 | 6c 69 73 74 20 61 72 65 |of that |list are|
|000013f0| 20 34 2d 62 79 74 65 20 | 65 6e 74 69 74 69 65 73 | 4-byte |entities|
|00001400| 2e 20 41 20 74 6f 77 65 | 72 20 69 6e 20 6f 75 72 |. A towe|r in our|
|00001410| 20 65 78 61 6d 70 6c 65 | 20 77 69 6c 6c 20 62 65 | example| will be|
|00001420| 00 00 05 3f 00 09 00 59 | 61 6e 20 6f 72 64 65 72 |...?...Y|an order|
|00001430| 65 64 2d 63 6f 6c 20 6f | 66 20 73 70 65 63 69 66 |ed-col o|f specif|
|00001440| 69 65 64 20 6d 61 78 69 | 6d 75 6d 20 73 69 7a 65 |ied maxi|mum size|
|00001450| 2e 20 49 6e 20 61 64 64 | 69 74 69 6f 6e 2c 20 69 |. In add|ition, i|
|00001460| 74 20 77 69 6c 6c 20 68 | 61 76 65 20 61 20 63 65 |t will h|ave a ce|
|00001470| 72 74 61 69 6e 20 70 6f | 73 69 74 69 6f 6e 20 6f |rtain po|sition o|
|00001480| 6e 00 00 00 05 4b 00 09 | 00 55 74 68 65 20 73 63 |n....K..|.Uthe sc|
|00001490| 72 65 65 6e 2c 20 fd 00 | 34 63 61 6e 20 62 65 20 |reen, ..|4can be |
|000014a0| 61 63 63 65 73 73 65 64 | 20 62 79 20 74 68 65 20 |accessed| by the |
|000014b0| 6d 65 74 68 6f 64 73 20 | 67 65 74 58 3a 20 61 6e |methods |getX: an|
|000014c0| 64 20 67 65 74 59 3a 20 | 61 6e 64 20 61 20 64 72 |d getY: |and a dr|
|000014d0| 61 77 3a 20 6d 65 74 68 | 6f 64 20 74 68 61 74 00 |aw: meth|od that.|
|000014e0| 00 00 05 57 00 09 00 55 | 64 72 61 77 73 20 74 68 |...W...U|draws th|
|000014f0| 65 20 74 6f 77 65 72 20 | 61 74 20 69 74 73 20 70 |e tower |at its p|
|00001500| 6f 73 69 74 69 6f 6e 20 | 69 6e 20 74 68 65 20 fd |osition |in the .|
|00001510| 00 0a 67 72 61 66 50 6f | 72 74 2e 20 54 68 61 74 |..grafPo|rt. That|
|00001520| 27 73 20 61 6c 6c 20 77 | 65 20 6e 65 65 64 20 61 |'s all w|e need a|
|00001530| 73 20 61 20 27 73 74 61 | 63 6b 69 6e 67 00 00 00 |s a 'sta|cking...|
|00001540| 05 63 00 09 00 57 64 65 | 76 69 63 65 27 20 66 6f |.c...Wde|vice' fo|
|00001550| 72 20 74 68 65 20 64 69 | 73 6b 73 2e 20 45 76 65 |r the di|sks. Eve|
|00001560| 72 79 74 68 69 6e 67 20 | 65 6c 73 65 20 69 73 20 |rything |else is |
|00001570| 74 61 6b 65 6e 20 63 61 | 72 65 20 6f 66 20 62 79 |taken ca|re of by|
|00001580| 20 74 68 65 20 64 69 73 | 6b 73 20 74 68 65 6d 73 | the dis|ks thems|
|00001590| 65 6c 76 65 73 2c 20 61 | 73 20 79 6f 75 00 00 00 |elves, a|s you...|
|000015a0| 05 6f 00 09 00 0e 77 69 | 6c 6c 20 73 65 65 20 73 |.o....wi|ll see s|
|000015b0| 6f 6f 6e 2e 00 00 05 7b | 00 24 00 4d 54 68 65 20 |oon....{|.$.MThe |
|000015c0| 69 6e 73 74 61 6e 63 65 | 20 76 61 72 69 61 62 6c |instance| variabl|
|000015d0| 65 73 20 6e 65 65 64 65 | 64 20 66 6f 72 20 65 76 |es neede|d for ev|
|000015e0| 65 72 79 20 6f 62 6a 65 | 63 74 20 6f 66 20 63 6c |ery obje|ct of cl|
|000015f0| 61 73 73 20 74 6f 77 65 | 72 20 61 72 65 3a 20 72 |ass towe|r are: r|
|00001600| 65 63 74 73 20 74 68 61 | 74 00 00 00 05 87 00 09 |ects tha|t.......|
|00001610| 00 56 63 6f 72 72 65 73 | 70 6f 6e 64 20 74 6f 20 |.Vcorres|pond to |
|00001620| 74 68 65 20 62 61 73 65 | 20 61 6e 64 20 74 68 65 |the base| and the|
|00001630| 20 70 6f 73 74 2c 20 61 | 6e 64 20 69 6e 74 73 20 | post, a|nd ints |
|00001640| 74 68 61 74 20 63 6f 6e | 74 61 69 6e 20 74 68 65 |that con|tain the|
|00001650| 20 78 20 61 6e 64 20 79 | 20 70 6f 73 69 74 69 6f | x and y| positio|
|00001660| 6e 20 6f 66 20 74 68 65 | 00 00 05 93 00 09 00 13 |n of the|........|
|00001670| 63 65 6e 74 65 72 20 6f | 66 20 74 68 65 20 62 61 |center o|f the ba|
|00001680| 73 65 2e 00 00 00 05 9f | 00 24 00 47 4e 6f 77 20 |se......|.$.GNow |
|00001690| 77 65 20 63 6f 75 6c 64 | 20 73 74 61 72 74 20 6f |we could| start o|
|000016a0| 75 72 20 73 69 6d 75 6c | 61 74 69 6f 6e 20 62 79 |ur simul|ation by|
|000016b0| 20 63 72 65 61 74 69 6e | 67 20 74 68 72 65 65 20 | creatin|g three |
|000016c0| 74 6f 77 65 72 20 6f 62 | 6a 65 63 74 73 2c 20 65 |tower ob|jects, e|
|000016d0| 2e 67 2e 00 00 00 05 b6 | 00 12 00 10 c6 89 c6 74 |.g......|.......t|
|000016e0| 6f 77 65 72 20 62 61 62 | 79 6c 6f 6e 00 00 05 c1 |ower bab|ylon....|
|000016f0| 00 12 00 0f c6 89 c6 74 | 6f 77 65 72 20 6c 6f 6e |.......t|ower lon|
|00001700| 64 6f 6e 00 00 00 05 cc | 00 12 00 0d c6 89 c6 74 |don.....|.......t|
|00001710| 6f 77 65 72 20 70 69 73 | 61 00 00 00 05 e4 00 24 |ower pis|a......$|
|00001720| 00 4d 45 78 63 65 70 74 | 20 66 6f 72 20 74 68 65 |.MExcept| for the|
|00001730| 20 66 61 63 74 20 74 68 | 61 74 20 74 68 69 73 20 | fact th|at this |
|00001740| 6c 6f 6f 6b 73 20 63 75 | 74 65 2c 20 fd 00 2f 69 |looks cu|te, ../i|
|00001750| 73 20 72 65 61 6c 6c 79 | 20 6e 6f 20 61 64 76 61 |s really| no adva|
|00001760| 6e 74 61 67 65 20 69 6e | 20 68 61 76 69 6e 67 00 |ntage in| having.|
|00001770| 00 00 05 f0 00 09 00 55 | 6e 61 6d 65 64 20 6f 62 |.......U|named ob|
|00001780| 6a 65 63 74 73 20 68 65 | 72 65 2e 20 4a 75 73 74 |jects he|re. Just|
|00001790| 20 74 6f 20 6d 61 6b 65 | 20 74 68 65 20 70 6f 69 | to make| the poi|
|000017a0| 6e 74 2c 20 61 6e 64 20 | 61 73 20 61 6e 20 65 78 |nt, and |as an ex|
|000017b0| 61 6d 70 6c 65 20 68 6f | 77 20 6f 62 6a 65 63 74 |ample ho|w object|
|000017c0| 73 20 63 61 6e 20 62 65 | 20 6d 61 64 65 00 00 00 |s can be| made...|
|000017d0| 05 fc 00 09 00 51 74 6f | 20 72 65 66 65 72 20 74 |.....Qto| refer t|
|000017e0| 6f 20 6f 74 68 65 72 20 | 6f 62 6a 65 63 74 73 2c |o other |objects,|
|000017f0| 20 77 65 20 73 65 74 20 | 75 70 20 74 68 65 20 74 | we set |up the t|
|00001800| 68 72 65 65 20 74 6f 77 | 65 72 73 20 61 73 20 61 |hree tow|ers as a|
|00001810| 20 33 2d 65 6c 65 6d 65 | 6e 74 20 34 2d 62 79 74 | 3-eleme|nt 4-byt|
|00001820| 65 20 61 72 72 61 79 00 | 00 00 06 08 00 09 00 53 |e array.|.......S|
|00001830| 74 6f 77 65 72 73 2e 20 | 54 68 69 73 20 67 69 76 |towers. |This giv|
|00001840| 65 73 20 74 68 65 20 61 | 64 64 69 74 69 6f 6e 61 |es the a|dditiona|
|00001850| 6c 20 61 64 76 61 6e 74 | 61 67 65 20 74 68 61 74 |l advant|age that|
|00001860| 20 77 65 20 63 61 6e 20 | 72 65 66 65 72 20 74 6f | we can |refer to|
|00001870| 20 74 68 65 6d 20 62 79 | 20 69 6e 64 65 78 2e 20 | them by| index. |
|00001880| 54 68 65 00 00 00 06 14 | 00 09 00 46 61 72 72 61 |The.....|...Farra|
|00001890| 79 20 69 73 20 69 6e 69 | 74 69 61 6c 69 7a 65 64 |y is ini|tialized|
|000018a0| 20 62 79 20 74 68 65 20 | 77 6f 72 64 20 6d 61 6b | by the |word mak|
|000018b0| 65 2e 74 6f 77 65 72 73 | 2c 20 fd 00 34 73 68 6f |e.towers|, ..4sho|
|000018c0| 77 73 20 68 6f 77 20 6f | 6e 65 20 63 61 6e 20 fe |ws how o|ne can .|
|000018d0| 00 0c 00 00 06 20 00 09 | 00 55 27 6e 61 6d 65 6c |..... ..|.U'namel|
|000018e0| 65 73 73 27 20 6f 62 6a | 65 63 74 73 20 6f 6e 20 |ess' obj|ects on |
|000018f0| 74 68 65 20 68 65 61 70 | 20 77 69 74 68 20 74 68 |the heap| with th|
|00001900| 65 20 68 65 61 70 3e 20 | 70 72 65 66 69 78 20 28 |e heap> |prefix (|
|00001910| 69 6e 20 6d 79 20 72 65 | 76 69 65 77 20 63 6f 70 |in my re|view cop|
|00001920| 79 20 6f 66 20 4e 45 4f | 4e 2c 20 74 68 69 73 00 |y of NEO|N, this.|
|00001930| 00 00 06 2c 00 09 00 4e | fd 00 1f 69 73 20 68 69 |...,...N|...is hi|
|00001940| 64 64 65 6e 20 73 6f 6d | 65 77 68 65 72 65 20 69 |dden som|ewhere i|
|00001950| 6e 20 74 68 65 20 70 61 | 67 65 73 20 6f 66 20 50 |n the pa|ges of P|
|00001960| 61 72 74 20 49 49 49 20 | 43 68 61 70 74 65 72 20 |art III |Chapter |
|00001970| 31 3b 20 49 20 61 6d 20 | 63 6f 6e 66 69 64 65 6e |1; I am |confiden|
|00001980| 74 20 74 68 61 74 00 00 | 06 38 00 09 00 31 61 20 |t that..|.8...1a |
|00001990| 72 65 76 69 73 65 64 20 | 6d 61 6e 75 61 6c 20 77 |revised |manual w|
|000019a0| 69 6c 6c 20 68 61 76 65 | 20 74 68 69 73 20 69 6e |ill have| this in|
|000019b0| 20 74 68 65 20 67 6c 6f | 73 73 61 72 79 29 2e 00 | the glo|ssary)..|
|000019c0| 00 00 06 44 00 24 00 50 | 78 63 65 6e 74 65 72 20 |...D.$.P|xcenter |
|000019d0| 79 63 65 6e 74 65 72 20 | 6e 64 69 73 6b 73 20 20 |ycenter |ndisks |
|000019e0| 68 65 61 70 3e 20 74 6f | 77 65 72 20 77 69 6c 6c |heap> to|wer will|
|000019f0| 20 6c 65 61 76 65 20 6f | 6e 20 74 68 65 20 73 74 | leave o|n the st|
|00001a00| 61 63 6b 20 74 68 65 20 | 61 64 64 72 65 73 73 20 |ack the |address |
|00001a10| 6f 66 20 61 20 6e 65 77 | 00 00 06 50 00 09 00 55 |of a new|...P...U|
|00001a20| 6f 62 6a 65 63 74 20 6f | 66 20 63 6c 61 73 73 20 |object o|f class |
|00001a30| 74 6f 77 65 72 20 fe 00 | 0c 64 20 6f 6e 20 74 68 |tower ..|.d on th|
|00001a40| 65 20 68 65 61 70 2e 20 | 54 68 65 20 74 6f 77 65 |e heap. |The towe|
|00001a50| 72 20 63 6f 6e 74 61 69 | 6e 73 20 6e 64 69 73 6b |r contai|ns ndisk|
|00001a60| 73 20 64 69 73 6b 73 2c | 20 61 6e 64 20 69 74 73 |s disks,| and its|
|00001a70| 20 62 61 73 65 00 00 00 | 06 5c 00 09 00 21 69 73 | base...|.\...!is|
|00001a80| 20 63 65 6e 74 65 72 65 | 64 20 61 74 20 28 78 63 | centere|d at (xc|
|00001a90| 65 6e 74 65 72 2c 79 63 | 65 6e 74 65 72 29 2e 00 |enter,yc|enter)..|
|00001aa0| 00 00 06 68 00 24 00 4c | 6e 64 69 73 6b 73 20 6d |...h.$.L|ndisks m|
|00001ab0| 61 6b 65 2e 74 6f 77 65 | 72 73 20 fe 00 0c 73 20 |ake.towe|rs ...s |
|00001ac0| 74 68 72 65 65 20 6f 66 | 20 74 68 65 73 65 20 67 |three of| these g|
|00001ad0| 69 7a 6d 6f 73 20 65 71 | 75 61 6c 6c 79 20 73 70 |izmos eq|ually sp|
|00001ae0| 61 63 65 64 20 6e 65 61 | 72 20 74 68 65 20 62 6f |aced nea|r the bo|
|00001af0| 74 74 6f 6d 00 00 06 74 | 00 09 00 53 6f 66 20 74 |ttom...t|...Sof t|
|00001b00| 68 65 20 73 63 72 65 65 | 6e 2c 20 65 61 63 68 20 |he scree|n, each |
|00001b10| 6f 66 20 74 68 65 6d 20 | 68 61 76 69 6e 67 20 73 |of them |having s|
|00001b20| 70 61 63 65 20 66 6f 72 | 20 64 69 73 6b 73 2c 20 |pace for| disks, |
|00001b30| 62 75 74 20 6e 6f 20 64 | 69 73 6b 73 20 6f 6e 20 |but no d|isks on |
|00001b40| 74 68 65 6d 20 79 65 74 | 2e 20 54 68 65 69 72 00 |them yet|. Their.|
|00001b50| 00 00 06 80 00 09 00 28 | 61 64 64 72 65 73 73 65 |.......(|addresse|
|00001b60| 73 20 61 72 65 20 70 75 | 74 20 69 6e 74 6f 20 74 |s are pu|t into t|
|00001b70| 68 65 20 61 72 72 61 79 | 20 74 6f 77 65 72 73 2e |he array| towers.|
|00001b80| 00 00 06 8c 00 24 00 4f | 64 72 61 77 2e 74 6f 77 |.....$.O|draw.tow|
|00001b90| 65 72 73 20 77 69 6c 6c | 20 64 72 61 77 20 74 68 |ers will| draw th|
|00001ba0| 65 20 74 6f 77 65 72 73 | 2c 20 62 75 74 20 6e 6f |e towers|, but no|
|00001bb0| 74 20 74 68 65 20 64 69 | 73 6b 73 2e 20 49 6e 20 |t the di|sks. In |
|00001bc0| 74 68 69 73 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |this def|inition |
|00001bd0| 79 6f 75 20 73 65 65 00 | 00 00 06 98 00 09 00 55 |you see.|.......U|
|00001be0| 68 6f 77 20 6f 6e 65 20 | 6d 61 6b 65 73 20 75 73 |how one |makes us|
|00001bf0| 65 20 6f 66 20 6c 61 74 | 65 20 62 69 6e 64 69 6e |e of lat|e bindin|
|00001c00| 67 3b 20 77 65 20 77 61 | 6e 74 20 74 6f 20 73 65 |g; we wa|nt to se|
|00001c10| 6e 64 20 61 20 64 72 61 | 77 3a 20 6d 65 73 73 61 |nd a dra|w: messa|
|00001c20| 67 65 20 74 6f 20 61 6e | 20 6f 62 6a 65 63 74 20 |ge to an| object |
|00001c30| fd 00 34 69 73 00 00 00 | 06 a4 00 09 00 56 65 78 |..4is...|.....Vex|
|00001c40| 61 63 74 6c 79 20 6b 6e | 6f 77 6e 20 6f 6e 6c 79 |actly kn|own only|
|00001c50| 20 61 74 20 65 78 65 63 | 75 74 69 6f 6e 20 74 69 | at exec|ution ti|
|00001c60| 6d 65 20 28 73 69 6e 63 | 65 20 74 6f 77 65 72 73 |me (sinc|e towers|
|00001c70| 20 63 6f 75 6c 64 20 63 | 6f 6e 74 61 69 6e 20 61 | could c|ontain a|
|00001c80| 6e 79 20 6b 69 6e 64 20 | 6f 66 20 61 64 64 72 65 |ny kind |of addre|
|00001c90| 73 73 29 2e 00 00 06 b0 | 00 09 00 56 fc 00 2f 66 |ss).....|...V../f|
|00001ca0| 6f 72 65 2c 20 69 66 20 | 77 65 20 77 61 6e 74 20 |ore, if |we want |
|00001cb0| 74 6f 20 64 72 61 77 20 | 74 68 65 20 69 2d 74 68 |to draw |the i-th|
|00001cc0| 20 74 6f 77 65 72 2c 20 | 77 65 20 68 61 76 65 20 | tower, |we have |
|00001cd0| 74 6f 20 77 72 69 74 65 | 20 20 64 72 61 77 3a 20 |to write| draw: |
|00001ce0| 5b 20 69 20 61 74 3a 20 | 74 6f 77 65 72 73 20 5d |[ i at: |towers ]|
|00001cf0| 20 2e 00 00 06 bc 00 09 | 00 52 28 54 68 65 20 73 | .......|.R(The s|
|00001d00| 61 6d 65 20 69 73 20 74 | 72 75 65 20 69 6e 20 69 |ame is t|rue in i|
|00001d10| 6d 6d 65 64 69 61 74 65 | 20 65 78 65 63 75 74 69 |mmediate| executi|
|00001d20| 6f 6e 20 6d 6f 64 65 3a | 20 64 72 61 77 3a 20 61 |on mode:| draw: a|
|00001d30| 64 64 72 20 77 69 6c 6c | 20 61 62 6f 72 74 20 77 |ddr will| abort w|
|00001d40| 69 74 68 20 61 6e 20 65 | 72 72 6f 72 00 00 06 c8 |ith an e|rror....|
|00001d50| 00 09 00 54 6d 65 73 73 | 61 67 65 2c 20 77 68 69 |...Tmess|age, whi|
|00001d60| 6c 65 20 64 72 61 77 3a | 20 5b 20 61 64 64 72 20 |le draw:| [ addr |
|00001d70| 5d 20 77 69 6c 6c 20 64 | 6f 20 74 68 65 20 63 6f |] will d|o the co|
|00001d80| 72 72 65 63 74 20 74 68 | 69 6e 67 2c 20 69 66 20 |rrect th|ing, if |
|00001d90| 61 64 64 72 20 69 73 20 | 74 68 65 20 61 64 64 72 |addr is |the addr|
|00001da0| 65 73 73 20 6f 66 20 61 | 00 00 06 d4 00 09 00 14 |ess of a|........|
|00001db0| 27 64 72 61 77 61 62 6c | 65 27 20 6f 62 6a 65 63 |'drawabl|e' objec|
|00001dc0| 74 2e 20 29 00 00 06 e0 | 00 24 00 4c 41 66 74 65 |t. )....|.$.LAfte|
|00001dd0| 72 20 79 6f 75 27 72 65 | 20 66 69 6e 69 73 68 65 |r you're| finishe|
|00001de0| 64 20 77 69 74 68 20 74 | 68 65 20 65 78 61 6d 70 |d with t|he examp|
|00001df0| 6c 65 2c 20 79 6f 75 20 | 6d 69 67 68 74 20 77 61 |le, you |might wa|
|00001e00| 6e 74 20 74 6f 20 64 69 | 73 70 6f 73 65 20 6f 66 |nt to di|spose of|
|00001e10| 20 74 68 65 6d 20 62 79 | 00 00 06 ec 00 09 00 56 | them by|.......V|
|00001e20| 63 61 6c 6c 69 6e 67 20 | 64 69 73 70 6f 73 65 2e |calling |dispose.|
|00001e30| 74 6f 77 65 72 73 2e 20 | 54 68 65 20 73 61 6d 65 |towers. |The same|
|00001e40| 20 73 68 6f 75 6c 64 20 | 62 65 20 64 6f 6e 65 20 | should |be done |
|00001e50| 74 6f 20 74 68 65 20 64 | 69 73 6b 73 3b 20 74 72 |to the d|isks; tr|
|00001e60| 79 20 77 72 69 74 69 6e | 67 20 61 20 64 65 66 69 |y writin|g a defi|
|00001e70| 6e 69 74 69 6f 6e 00 00 | 06 f8 00 09 00 15 74 68 |nition..|......th|
|00001e80| 61 74 20 77 69 6c 6c 20 | 64 6f 20 74 68 65 20 6a |at will |do the j|
|00001e90| 6f 62 2e 00 00 00 07 0e | 00 96 00 19 c2 c2 4d 6f |ob......|......Mo|
|00001ea0| 76 69 6e 67 20 61 72 6f | 75 6e 64 20 74 68 65 20 |ving aro|und the |
|00001eb0| 64 69 73 6b 73 00 00 00 | 07 1f 00 24 00 46 54 68 |disks...|...$.FTh|
|00001ec0| 65 20 64 69 73 6b 20 6f | 62 6a 65 63 74 73 20 61 |e disk o|bjects a|
|00001ed0| 72 65 20 6d 6f 72 65 20 | 63 6f 6d 70 6c 69 63 61 |re more |complica|
|00001ee0| 74 65 64 20 74 68 61 6e | 20 74 68 65 20 74 6f 77 |ted than| the tow|
|00001ef0| 65 72 73 2e 20 54 68 65 | 79 20 68 61 76 65 20 74 |ers. The|y have t|
|00001f00| 6f 20 62 65 00 00 07 2b | 00 09 00 54 69 6e 69 74 |o be...+|...Tinit|
|00001f10| 69 61 6c 69 7a 65 64 20 | 61 6e 64 20 64 72 61 77 |ialized |and draw|
|00001f20| 6e 3b 20 74 68 65 79 20 | 77 69 6c 6c 20 63 6f 6d |n; they |will com|
|00001f30| 65 20 69 6e 20 64 69 66 | 66 65 72 65 6e 74 20 73 |e in dif|ferent s|
|00001f40| 69 7a 65 73 3b 20 61 6e | 64 20 74 68 65 79 20 77 |izes; an|d they w|
|00001f50| 69 6c 6c 20 6d 6f 76 65 | 20 61 72 6f 75 6e 64 2c |ill move| around,|
|00001f60| 00 00 07 37 00 09 00 35 | 73 69 74 74 69 6e 67 20 |...7...5|sitting |
|00001f70| 6f 6e 20 6f 6e 65 20 6f | 66 20 74 68 65 20 74 68 |on one o|f the th|
|00001f80| 72 65 65 20 73 74 61 63 | 6b 73 20 61 74 20 61 6e |ree stac|ks at an|
|00001f90| 79 20 67 69 76 65 6e 20 | 74 69 6d 65 2e 00 00 00 |y given |time....|
|00001fa0| 07 43 00 24 00 50 53 69 | 6e 63 65 20 74 68 65 20 |.C.$.PSi|nce the |
|00001fb0| 64 69 73 6b 73 20 77 6f | 6e 27 74 20 73 68 72 69 |disks wo|n't shri|
|00001fc0| 6e 6b 20 6f 72 20 67 72 | 6f 77 2c 20 74 68 65 69 |nk or gr|ow, thei|
|00001fd0| 72 20 73 69 7a 65 20 69 | 73 20 6b 6e 6f 77 6e 20 |r size i|s known |
|00001fe0| 61 74 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |at initi|alizatio|
|00001ff0| 6e 20 74 69 6d 65 00 00 | 07 4f 00 09 00 53 61 6e |n time..|.O...San|
|00002000| 64 20 77 69 6c 6c 20 62 | 65 20 70 61 73 73 65 64 |d will b|e passed|
|00002010| 20 61 73 20 61 20 70 61 | 72 61 6d 65 74 65 72 20 | as a pa|rameter |
|00002020| 74 6f 20 63 6c 61 73 73 | 69 6e 69 74 3a 2e 20 54 |to class|init:. T|
|00002030| 68 69 73 20 6d 65 74 68 | 6f 64 20 61 6c 73 6f 20 |his meth|od also |
|00002040| 6e 65 65 64 73 20 74 6f | 20 6b 6e 6f 77 20 fe 00 |needs to| know ..|
|00002050| 34 00 00 00 07 5b 00 09 | 00 59 74 6f 77 65 72 20 |4....[..|.Ytower |
|00002060| 74 68 65 20 64 69 73 6b | 20 69 73 20 6f 6e 20 61 |the disk| is on a|
|00002070| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |t the be|ginning |
|00002080| 28 77 65 20 70 61 73 73 | 20 74 68 65 20 61 64 64 |(we pass| the add|
|00002090| 72 65 73 73 20 6f 66 20 | 74 68 65 20 74 6f 77 65 |ress of |the towe|
|000020a0| 72 20 6f 62 6a 65 63 74 | 20 61 6e 64 20 70 75 74 |r object| and put|
|000020b0| 20 69 74 00 00 00 07 67 | 00 09 00 54 69 6e 74 6f | it....g|...Tinto|
|000020c0| 20 74 68 65 20 69 6e 73 | 74 61 6e 63 65 20 76 61 | the ins|tance va|
|000020d0| 72 69 61 62 6c 65 20 fe | 00 34 29 2e 20 54 68 65 |riable .|.4). The|
|000020e0| 20 6e 65 77 6c 79 20 fe | 00 0c 64 20 64 69 73 6b | newly .|..d disk|
|000020f0| 20 69 74 20 74 68 65 6e | 20 70 75 74 20 6f 6e 20 | it then| put on |
|00002100| 74 6f 70 20 6f 66 20 74 | 68 65 20 74 6f 77 65 72 |top of t|he tower|
|00002110| 00 00 07 73 00 09 00 19 | fd 00 34 69 74 20 69 73 |...s....|..4it is|
|00002120| 20 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 | associa|ted with|
|00002130| 2e 00 00 00 07 7f 00 24 | 00 4b 54 68 65 20 64 72 |.......$|.KThe dr|
|00002140| 61 77 3a 20 6d 65 74 68 | 6f 64 20 69 73 20 6e 6f |aw: meth|od is no|
|00002150| 74 20 71 75 69 74 65 20 | 67 65 6e 65 72 61 6c 20 |t quite |general |
|00002160| 66 6f 72 20 64 69 73 6b | 73 2c 20 62 75 74 20 76 |for disk|s, but v|
|00002170| 65 72 79 20 fe 00 2d 69 | 7a 65 64 20 66 6f 72 20 |ery ..-i|zed for |
|00002180| 48 61 6e 6f 69 00 00 00 | 07 8b 00 09 00 5c 64 69 |Hanoi...|.....\di|
|00002190| 73 6b 73 3a 20 69 74 20 | 6d 61 6b 65 73 20 75 73 |sks: it |makes us|
|000021a0| 65 20 6f 66 20 74 68 65 | 20 66 61 63 74 20 74 68 |e of the| fact th|
|000021b0| 61 74 20 61 20 64 69 73 | 6b 20 69 73 20 6f 6e 6c |at a dis|k is onl|
|000021c0| 79 20 64 72 61 77 6e 20 | 72 69 67 68 74 20 61 66 |y drawn |right af|
|000021d0| 74 65 72 20 69 74 20 68 | 61 73 20 62 65 65 6e 20 |ter it h|as been |
|000021e0| 70 75 74 20 6f 6e 20 74 | 6f 70 00 00 07 97 00 09 |put on t|op......|
|000021f0| 00 58 6f 66 20 61 20 73 | 74 61 63 6b 2e 20 53 69 |.Xof a s|tack. Si|
|00002200| 6e 63 65 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 |nce the |size of |
|00002210| 74 68 61 74 20 73 74 61 | 63 6b 20 69 73 20 6b 6e |that sta|ck is kn|
|00002220| 6f 77 6e 20 28 62 79 20 | 65 78 65 63 75 74 69 6e |own (by |executin|
|00002230| 67 20 73 69 7a 65 3a 20 | 5b 20 67 65 74 3a 20 fd |g size: |[ get: .|
|00002240| 00 34 5d 20 29 2c 20 74 | 68 65 00 00 07 a3 00 09 |.4] ), t|he......|
|00002250| 00 57 70 6f 73 69 74 69 | 6f 6e 20 6f 66 20 74 68 |.Wpositi|on of th|
|00002260| 65 20 74 6f 70 6d 6f 73 | 74 20 64 69 73 6b 20 69 |e topmos|t disk i|
|00002270| 73 20 65 78 61 63 74 6c | 79 20 64 65 74 65 72 6d |s exactl|y determ|
|00002280| 69 6e 65 64 2e 20 fc 00 | 2f 66 6f 72 65 2c 20 64 |ined. ..|/fore, d|
|00002290| 72 61 77 3a 20 63 61 6c | 63 75 6c 61 74 65 73 20 |raw: cal|culates |
|000022a0| 66 69 72 73 74 20 74 68 | 65 00 00 00 07 af 00 09 |first th|e.......|
|000022b0| 00 59 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 6f 66 |.Ycoordi|nates of|
|000022c0| 20 74 68 65 20 63 65 6e | 74 65 72 20 6f 66 20 74 | the cen|ter of t|
|000022d0| 68 65 20 64 69 73 6b 20 | 61 6e 64 20 73 61 76 65 |he disk |and save|
|000022e0| 73 20 74 68 65 6d 20 69 | 6e 20 69 6e 73 74 61 6e |s them i|n instan|
|000022f0| 63 65 20 76 61 72 69 61 | 62 6c 65 73 20 66 6f 72 |ce varia|bles for|
|00002300| 20 6c 61 74 65 72 20 75 | 73 65 2c 00 00 00 07 bb | later u|se,.....|
|00002310| 00 09 00 59 74 68 65 6e | 20 64 6f 65 73 20 74 68 |...Ythen| does th|
|00002320| 65 20 6e 65 63 65 73 73 | 61 72 79 20 51 75 69 63 |e necess|ary Quic|
|00002330| 6b 64 72 61 77 20 63 61 | 6c 6c 73 2e 20 49 66 20 |kdraw ca|lls. If |
|00002340| 6f 6e 65 20 77 61 6e 74 | 65 64 20 74 6f 20 64 6f |one want|ed to do|
|00002350| 20 6f 74 68 65 72 20 74 | 68 69 6e 67 73 20 77 69 | other t|hings wi|
|00002360| 74 68 20 74 68 65 20 64 | 69 73 6b 73 2c 00 00 00 |th the d|isks,...|
|00002370| 07 c7 00 09 00 51 65 2e | 67 2e 20 64 72 61 77 69 |.....Qe.|g. drawi|
|00002380| 6e 67 20 74 68 65 6d 20 | 61 74 20 64 69 66 66 65 |ng them |at diffe|
|00002390| 72 65 6e 74 20 70 6c 61 | 63 65 73 2c 20 6f 6e 65 |rent pla|ces, one|
|000023a0| 20 6d 69 67 68 74 20 77 | 61 6e 74 20 74 6f 20 66 | might w|ant to f|
|000023b0| 61 63 74 6f 72 20 6f 75 | 74 20 74 68 65 20 63 6f |actor ou|t the co|
|000023c0| 64 65 20 74 68 61 74 00 | 00 00 07 d3 00 09 00 1b |de that.|........|
|000023d0| 63 61 6c 63 75 6c 61 74 | 65 73 20 74 68 65 20 63 |calculat|es the c|
|000023e0| 6f 6f 72 64 69 6e 61 74 | 65 73 2e 00 00 00 07 df |oordinat|es......|
|000023f0| 00 24 00 4e 75 6e 64 72 | 61 77 3a 20 72 65 6d 6f |.$.Nundr|aw: remo|
|00002400| 76 65 73 20 74 68 65 20 | 64 69 73 6b 20 66 72 6f |ves the |disk fro|
|00002410| 6d 20 69 74 73 20 70 6f | 73 69 74 69 6f 6e 20 20 |m its po|sition |
|00002420| 28 62 75 74 20 6e 6f 74 | 20 66 72 6f 6d 20 74 68 |(but not| from th|
|00002430| 65 20 6c 69 73 74 20 fd | 00 34 69 73 20 62 65 69 |e list .|.4is bei|
|00002440| 6e 67 00 00 07 eb 00 09 | 00 59 6b 65 70 74 20 69 |ng......|.Ykept i|
|00002450| 6e 20 74 68 65 20 74 6f | 77 65 72 29 2c 20 61 6e |n the to|wer), an|
|00002460| 64 20 72 65 64 72 61 77 | 73 20 74 68 65 20 6c 69 |d redraw|s the li|
|00002470| 74 74 6c 65 20 62 6c 61 | 63 6b 20 72 65 63 74 61 |ttle bla|ck recta|
|00002480| 6e 67 6c 65 2c 20 74 68 | 65 20 70 61 72 74 20 6f |ngle, th|e part o|
|00002490| 66 20 74 68 65 20 70 6f | 73 74 20 74 68 61 74 20 |f the po|st that |
|000024a0| 68 61 64 00 00 00 07 f7 | 00 09 00 4f 62 65 65 6e |had.....|...Obeen|
|000024b0| 20 6f 76 65 72 77 72 69 | 74 74 65 6e 20 70 72 65 | overwri|tten pre|
|000024c0| 76 69 6f 75 73 6c 79 2e | 20 48 65 72 65 20 61 67 |viously.| Here ag|
|000024d0| 61 69 6e 2c 20 79 6f 75 | 20 73 65 65 20 74 68 61 |ain, you| see tha|
|000024e0| 74 20 61 20 fd 00 2d 61 | 73 73 75 6d 70 74 69 6f |t a ..-a|ssumptio|
|000024f0| 6e 20 61 62 6f 75 74 20 | 74 68 65 00 00 00 08 03 |n about |the.....|
|00002500| 00 09 00 58 62 65 68 61 | 76 69 6f 72 20 6f 66 20 |...Xbeha|vior of |
|00002510| 74 68 65 20 64 69 73 6b | 20 69 73 20 6d 61 64 65 |the disk| is made|
|00002520| 3a 20 6e 61 6d 65 6c 79 | 2c 20 74 68 61 74 20 69 |: namely|, that i|
|00002530| 74 20 64 6f 65 73 20 6e | 6f 74 20 63 6f 76 65 72 |t does n|ot cover|
|00002540| 20 61 6e 79 74 68 69 6e | 67 20 62 75 74 20 61 20 | anythin|g but a |
|00002550| 63 65 72 74 61 69 6e 20 | 70 61 72 74 00 00 08 0f |certain |part....|
|00002560| 00 09 00 12 6f 66 20 74 | 68 65 20 74 6f 77 65 72 |....of t|he tower|
|00002570| 20 70 6f 73 74 2e 00 00 | 08 1b 00 24 00 4b 64 65 | post...|...$.Kde|
|00002580| 73 74 20 6d 6f 76 65 3a | 20 66 69 6e 61 6c 6c 79 |st move:| finally|
|00002590| 20 77 69 6c 6c 20 6d 6f | 76 65 20 61 20 64 69 73 | will mo|ve a dis|
|000025a0| 6b 20 66 72 6f 6d 20 77 | 68 65 72 65 76 65 72 20 |k from w|herever |
|000025b0| 69 74 20 77 61 73 20 74 | 6f 20 74 68 65 20 74 6f |it was t|o the to|
|000025c0| 77 65 72 20 64 65 73 74 | 2c 00 00 00 08 27 00 09 |wer dest|,....'..|
|000025d0| 00 25 75 6e 64 72 61 77 | 69 6e 67 20 61 6e 64 20 |.%undraw|ing and |
|000025e0| 72 65 64 72 61 77 69 6e | 67 20 61 73 20 6e 65 63 |redrawin|g as nec|
|000025f0| 65 73 73 61 72 79 2e 00 | 00 00 08 3d 00 99 00 18 |essary..|...=....|
|00002600| c2 c2 4f 62 6a 65 63 74 | 20 49 6e 74 65 72 64 65 |..Object| Interde|
|00002610| 70 65 6e 64 65 6e 63 65 | 00 00 08 4e 00 24 00 45 |pendence|...N.$.E|
|00002620| 59 6f 75 20 73 65 65 20 | 74 68 65 20 6c 69 6e 65 |You see |the line|
|00002630| 20 74 68 61 74 20 77 65 | 20 64 72 61 77 20 62 65 | that we| draw be|
|00002640| 74 77 65 65 6e 20 67 65 | 6e 65 72 61 6c 20 61 6e |tween ge|neral an|
|00002650| 64 20 fe 00 2d 69 7a 65 | 64 20 62 65 68 61 76 69 |d ..-ize|d behavi|
|00002660| 6f 72 20 6f 66 00 00 00 | 08 5a 00 09 00 58 6f 62 |or of...|.Z...Xob|
|00002670| 6a 65 63 74 73 2e 20 54 | 68 65 20 66 61 63 74 20 |jects. T|he fact |
|00002680| 74 68 61 74 20 61 20 64 | 69 73 6b 20 69 73 20 64 |that a d|isk is d|
|00002690| 69 73 70 6c 61 79 65 64 | 20 61 73 20 61 20 70 61 |isplayed| as a pa|
|000026a0| 74 74 65 72 6e 2d 66 69 | 6c 6c 65 64 20 72 65 63 |ttern-fi|lled rec|
|000026b0| 74 61 6e 67 6c 65 20 74 | 68 61 74 20 74 61 6b 65 |tangle t|hat take|
|000026c0| 73 20 75 70 20 61 00 00 | 08 66 00 09 00 50 63 65 |s up a..|.f...Pce|
|000026d0| 72 74 61 69 6e 20 61 6d | 6f 75 6e 74 20 6f 66 20 |rtain am|ount of |
|000026e0| 73 70 61 63 65 20 6f 6e | 20 74 68 65 20 73 63 72 |space on| the scr|
|000026f0| 65 65 6e 20 69 73 20 61 | 20 62 65 68 61 76 69 6f |een is a| behavio|
|00002700| 72 20 74 68 61 74 20 77 | 6f 75 6c 64 20 62 65 20 |r that w|ould be |
|00002710| 67 65 6e 65 72 61 6c 20 | 74 6f 20 61 6e 79 00 00 |general |to any..|
|00002720| 08 72 00 09 00 53 27 64 | 69 73 6b 2d 6c 69 6b 65 |.r...S'd|isk-like|
|00002730| 27 20 6f 62 6a 65 63 74 | 20 28 75 6e 6c 65 73 73 |' object| (unless|
|00002740| 20 77 65 20 63 68 6f 6f | 73 65 20 74 6f 20 72 6f | we choo|se to ro|
|00002750| 74 61 74 65 20 69 74 20 | 61 73 20 77 65 6c 6c 29 |tate it |as well)|
|00002760| 2e 20 20 41 73 73 6f 63 | 69 61 74 69 6f 6e 20 74 |. Assoc|iation t|
|00002770| 6f 20 61 6e 6f 74 68 65 | 72 00 00 00 08 7e 00 09 |o anothe|r....~..|
|00002780| 00 56 6f 62 6a 65 63 74 | 2c 20 74 68 65 20 74 6f |.Vobject|, the to|
|00002790| 77 65 72 2c 20 77 6f 75 | 6c 64 20 61 6c 73 6f 20 |wer, wou|ld also |
|000027a0| 62 65 20 73 6f 6d 65 74 | 68 69 6e 67 20 74 68 61 |be somet|hing tha|
|000027b0| 74 20 63 6f 75 6c 64 20 | 62 65 20 69 6d 70 6c 65 |t could |be imple|
|000027c0| 6d 65 6e 74 65 64 20 69 | 6e 74 6f 20 61 6e 20 69 |mented i|nto an i|
|000027d0| 64 65 61 6c 69 7a 65 64 | 00 00 08 8a 00 09 00 59 |dealized|.......Y|
|000027e0| 27 67 65 6e 65 72 61 6c | 27 20 64 69 73 6b 2e 20 |'general|' disk. |
|000027f0| 42 75 74 20 74 68 65 20 | 66 61 63 74 20 74 68 61 |But the |fact tha|
|00002800| 74 20 74 68 69 73 20 6f | 74 68 65 72 20 6f 62 6a |t this o|ther obj|
|00002810| 65 63 74 20 68 61 73 20 | 61 20 63 65 72 74 61 69 |ect has |a certai|
|00002820| 6e 20 73 68 61 70 65 20 | 61 6e 64 20 74 68 61 74 |n shape |and that|
|00002830| 20 74 68 65 20 64 69 73 | 6b 00 00 00 08 96 00 09 | the dis|k.......|
|00002840| 00 4b 63 61 6e 20 6f 6e | 6c 79 20 62 65 20 70 75 |.Kcan on|ly be pu|
|00002850| 74 20 6f 6e 74 6f 20 69 | 74 20 69 6e 20 61 20 63 |t onto i|t in a c|
|00002860| 65 72 74 61 69 6e 20 6d | 61 6e 6e 65 72 20 69 73 |ertain m|anner is|
|00002870| 20 65 78 74 72 61 20 fd | 00 1f fd 00 34 74 68 65 | extra .|....4the|
|00002880| 20 64 69 73 6b 20 27 6b | 6e 6f 77 73 27 00 00 00 | disk 'k|nows'...|
|00002890| 08 a2 00 09 00 47 61 62 | 6f 75 74 20 61 6e 64 20 |.....Gab|out and |
|000028a0| fd 00 34 69 73 20 75 73 | 65 64 20 77 69 74 68 69 |..4is us|ed withi|
|000028b0| 6e 20 74 68 65 20 63 6f | 64 65 20 74 68 61 74 20 |n the co|de that |
|000028c0| 64 65 66 69 6e 65 73 20 | 73 6f 6d 65 20 6f 66 20 |defines |some of |
|000028d0| 69 74 73 20 6d 65 74 68 | 6f 64 73 2e 20 00 00 00 |its meth|ods. ...|
|000028e0| 08 ae 00 24 00 4a 54 6f | 20 6d 61 6b 65 20 74 68 |...$.JTo| make th|
|000028f0| 65 20 6f 62 6a 65 63 74 | 73 20 65 76 65 6e 20 6d |e object|s even m|
|00002900| 6f 72 65 20 69 6e 64 65 | 70 65 6e 64 65 6e 74 2c |ore inde|pendent,|
|00002910| 20 27 4d 61 63 44 72 61 | 77 2d 6c 69 6b 65 27 2c | 'MacDra|w-like',|
|00002920| 20 77 6f 75 6c 64 20 72 | 65 71 75 69 72 65 20 61 | would r|equire a|
|00002930| 00 00 08 ba 00 09 00 55 | 6d 75 63 68 20 6d 6f 72 |.......U|much mor|
|00002940| 65 20 73 6f 70 68 69 73 | 74 69 63 61 74 65 64 20 |e sophis|ticated |
|00002950| 69 6e 74 65 72 66 61 63 | 65 20 62 65 74 77 65 65 |interfac|e betwee|
|00002960| 6e 20 74 6f 77 65 72 73 | 20 61 6e 64 20 64 69 73 |n towers| and dis|
|00002970| 6b 73 20 74 68 61 6e 20 | 67 69 76 65 6e 20 68 65 |ks than |given he|
|00002980| 72 65 2e 20 4f 6e 65 20 | 77 6f 75 6c 64 00 00 00 |re. One |would...|
|00002990| 08 c6 00 09 00 4c 74 68 | 65 6e 20 72 61 74 68 65 |.....Lth|en rathe|
|000029a0| 72 20 73 74 61 72 74 20 | 62 79 20 64 65 66 69 6e |r start |by defin|
|000029b0| 69 6e 67 20 61 20 73 75 | 62 63 6c 61 73 73 20 6f |ing a su|bclass o|
|000029c0| 66 20 fd 00 33 fd 00 34 | 68 61 73 20 65 2e 67 2e |f ..3..4|has e.g.|
|000029d0| 20 61 6e 20 6f 72 64 65 | 72 65 64 2d 63 6f 6c 20 | an orde|red-col |
|000029e0| 6f 66 00 00 08 d2 00 09 | 00 51 6f 62 6a 65 63 74 |of......|.Qobject|
|000029f0| 73 20 61 73 73 6f 63 69 | 61 74 65 64 20 74 6f 20 |s associ|ated to |
|00002a00| 69 74 2c 20 61 6e 64 20 | fd 00 34 77 6f 75 6c 64 |it, and |..4would|
|00002a10| 20 62 65 20 75 70 64 61 | 74 65 64 20 65 61 63 68 | be upda|ted each|
|00002a20| 20 74 69 6d 65 20 6f 6e | 65 20 6f 66 20 74 68 65 | time on|e of the|
|00002a30| 20 6f 62 6a 65 63 74 73 | 20 69 73 00 00 00 08 de | objects| is.....|
|00002a40| 00 09 00 54 6d 6f 76 65 | 64 2e 20 49 20 66 65 6c |...Tmove|d. I fel|
|00002a50| 74 20 74 68 69 73 20 77 | 6f 75 6c 64 20 68 61 76 |t this w|ould hav|
|00002a60| 65 20 fe 00 0c 64 20 74 | 6f 6f 20 6d 75 63 68 20 |e ...d t|oo much |
|00002a70| 6f 76 65 72 68 65 61 64 | 20 74 6f 20 74 68 65 20 |overhead| to the |
|00002a80| 70 72 6f 67 72 61 6d 20 | 65 78 61 6d 70 6c 65 2e |program |example.|
|00002a90| 20 42 75 74 20 79 6f 75 | 00 00 08 ea 00 09 00 4f | But you|.......O|
|00002aa0| 63 61 6e 20 73 65 65 20 | 74 68 61 74 20 4d 61 63 |can see |that Mac|
|00002ab0| 44 72 61 77 20 69 73 20 | 6e 6f 74 20 76 65 72 79 |Draw is |not very|
|00002ac0| 20 66 61 72 20 61 77 61 | 79 2c 20 6a 75 73 74 20 | far awa|y, just |
|00002ad0| 67 6f 20 61 68 65 61 64 | 20 61 6e 64 20 fd 00 0c |go ahead| and ...|
|00002ae0| 74 68 61 74 20 fe 00 33 | 2c 20 61 20 73 65 74 00 |that ..3|, a set.|
|00002af0| 00 00 08 f6 00 09 00 51 | 6f 66 20 6f 62 6a 65 63 |.......Q|of objec|
|00002b00| 74 73 20 61 6e 64 20 74 | 68 65 69 72 20 61 70 70 |ts and t|heir app|
|00002b10| 72 6f 70 72 69 61 74 65 | 20 62 65 68 61 76 69 6f |ropriate| behavio|
|00002b20| 72 2c 20 61 6e 64 20 fd | 00 2f 79 6f 75 20 67 6f |r, and .|./you go|
|00002b30| 2e 2e 2e 20 73 65 6e 64 | 20 75 73 20 74 68 65 20 |... send| us the |
|00002b40| 63 6f 64 65 20 77 68 65 | 6e 00 00 00 09 02 00 09 |code whe|n.......|
|00002b50| 00 1e 79 6f 75 27 72 65 | 20 64 6f 6e 65 2c 20 77 |..you're| done, w|
|00002b60| 65 27 6c 6c 20 70 75 62 | 6c 69 73 68 20 69 74 2e |e'll pub|lish it.|
|00002b70| 00 00 09 18 00 b7 00 0e | c2 c2 4d 61 69 6e 20 72 |........|..Main r|
|00002b80| 6f 75 74 69 6e 65 00 00 | 09 29 00 24 00 49 54 68 |outine..|.).$.ITh|
|00002b90| 65 20 6d 61 69 6e 20 72 | 6f 75 74 69 6e 65 20 73 |e main r|outine s|
|00002ba0| 69 6d 70 6c 79 20 fe 00 | 0c 73 20 61 20 48 61 6e |imply ..|.s a Han|
|00002bb0| 6f 69 20 70 75 7a 7a 6c | 65 20 6f 66 20 6e 64 69 |oi puzzl|e of ndi|
|00002bc0| 73 6b 73 20 64 69 73 6b | 73 20 61 6e 64 20 64 72 |sks disk|s and dr|
|00002bd0| 61 77 73 20 74 68 65 00 | 00 00 09 35 00 09 00 57 |aws the.|...5...W|
|00002be0| 69 6e 69 74 69 61 6c 20 | 70 6f 73 69 74 69 6f 6e |initial |position|
|00002bf0| 2e 20 6e 64 69 73 6b 73 | 20 69 20 6a 20 6b 20 68 |. ndisks| i j k h|
|00002c00| 61 6e 6f 69 20 77 69 6c | 6c 20 6d 6f 76 65 20 74 |anoi wil|l move t|
|00002c10| 68 6f 73 65 20 64 69 73 | 6b 73 20 28 20 6f 72 20 |hose dis|ks ( or |
|00002c20| 6c 65 73 73 2c 20 69 66 | 20 79 6f 75 20 73 65 74 |less, if| you set|
|00002c30| 20 6e 64 69 73 6b 73 00 | 00 00 09 41 00 09 00 4c | ndisks.|...A...L|
|00002c40| 64 69 66 66 65 72 65 6e | 74 6c 79 29 20 61 63 63 |differen|tly) acc|
|00002c50| 6f 72 64 69 6e 67 20 74 | 6f 20 74 68 65 20 72 75 |ording t|o the ru|
|00002c60| 6c 65 73 20 6f 66 20 74 | 68 65 20 67 61 6d 65 20 |les of t|he game |
|00002c70| 66 72 6f 6d 20 74 6f 77 | 65 72 20 69 20 76 69 61 |from tow|er i via|
|00002c80| 20 6a 20 74 6f 20 6b 2e | 20 54 72 79 00 00 09 58 | j to k.| Try...X|
|00002c90| 00 12 00 09 c6 c6 31 30 | 20 6d 61 69 6e 00 00 00 |......10| main...|
|00002ca0| 09 63 00 12 00 10 c6 c6 | 31 30 20 30 20 31 20 32 |.c......|10 0 1 2|
|00002cb0| 20 68 61 6e 6f 69 00 00 | 09 80 00 09 00 1f 6f 72 | hanoi..|......or|
|00002cc0| 2c 20 74 6f 20 fd 00 0c | 61 20 27 66 6f 72 62 69 |, to ...|a 'forbi|
|00002cd0| 64 64 65 6e 27 20 70 61 | 74 74 65 72 6e 00 00 00 |dden' pa|ttern...|
|00002ce0| 09 97 00 12 00 09 c6 c6 | 31 30 20 6d 61 69 6e 00 |........|10 main.|
|00002cf0| 00 00 09 a2 00 12 00 0f | c6 c6 35 20 30 20 31 20 |........|..5 0 1 |
|00002d00| 32 20 68 61 6e 6f 69 00 | 00 00 09 ad 00 12 00 0f |2 hanoi.|........|
|00002d10| c6 c6 35 20 30 20 32 20 | 31 20 68 61 6e 6f 69 00 |..5 0 2 |1 hanoi.|
|00002d20| 00 00 09 b8 00 12 00 0f | c6 c6 35 20 31 20 30 20 |........|..5 1 0 |
|00002d30| 32 20 68 61 6e 6f 69 00 | 00 00 09 d0 00 24 00 48 |2 hanoi.|.....$.H|
|00002d40| 48 61 76 65 20 66 75 6e | 21 20 44 65 74 65 72 6d |Have fun|! Determ|
|00002d50| 69 6e 65 64 20 46 4f 52 | 54 48 20 70 72 6f 67 72 |ined FOR|TH progr|
|00002d60| 61 6d 6d 65 72 73 20 6d | 69 67 68 74 20 74 72 79 |ammers m|ight try|
|00002d70| 20 74 6f 20 72 65 77 72 | 69 74 65 20 74 68 69 73 | to rewr|ite this|
|00002d80| 20 65 78 61 6d 70 6c 65 | 00 00 09 dc 00 09 00 55 | example|.......U|
|00002d90| 69 6e 74 6f 20 4d 61 63 | 46 6f 72 74 68 20 6f 72 |into Mac|Forth or|
|00002da0| 20 73 6f 6d 65 20 6f 74 | 68 65 72 20 46 6f 72 74 | some ot|her Fort|
|00002db0| 68 2e 20 54 68 65 20 48 | 61 6e 6f 69 20 72 6f 75 |h. The H|anoi rou|
|00002dc0| 74 69 6e 65 20 69 74 73 | 65 6c 66 20 69 73 20 73 |tine its|elf is s|
|00002dd0| 69 6d 70 6c 65 2e 20 44 | 6f 69 6e 67 20 74 68 65 |imple. D|oing the|
|00002de0| 20 64 61 74 61 00 00 00 | 09 e8 00 09 00 45 72 65 | data...|.....Ere|
|00002df0| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 69 6e 20 |presenta|tion in |
|00002e00| 74 68 65 20 73 61 6d 65 | 20 77 61 79 20 73 68 6f |the same| way sho|
|00002e10| 75 6c 64 20 6c 6f 6f 6b | 20 72 61 74 68 65 72 20 |uld look| rather |
|00002e20| 6d 6f 72 65 20 63 6f 6d | 70 6c 69 63 61 74 65 64 |more com|plicated|
|00002e30| 2e 2e 2e 00 00 00 09 fe | 00 aa 00 13 c2 c2 43 68 |........|......Ch|
|00002e40| 61 6e 67 65 20 6f 66 20 | 61 64 64 72 65 73 73 00 |ange of |address.|
|00002e50| 00 00 0a 0f 00 24 00 45 | 57 65 20 68 61 76 65 20 |.....$.E|We have |
|00002e60| 6d 6f 76 65 64 20 69 6e | 20 74 68 65 20 6d 65 61 |moved in| the mea|
|00002e70| 6e 74 69 6d 65 2e 20 50 | 6c 65 61 73 65 20 61 64 |ntime. P|lease ad|
|00002e80| 64 72 65 73 73 20 61 6c | 6c 20 71 75 65 73 74 69 |dress al|l questi|
|00002e90| 6f 6e 73 2c 20 72 65 6d | 61 72 6b 73 2c 00 00 00 |ons, rem|arks,...|
|00002ea0| 0a 1b 00 09 00 2b 73 75 | 67 67 65 73 74 69 6f 6e |.....+su|ggestion|
|00002eb0| 73 2c 20 65 74 63 2e 20 | 72 65 67 61 72 64 69 6e |s, etc. |regardin|
|00002ec0| 67 20 74 68 69 73 20 63 | 6f 6c 75 6d 6e 20 74 6f |g this c|olumn to|
|00002ed0| 3a 00 00 00 0a 27 00 24 | 00 0f 4a ff 9a 72 67 20 |:....'.$|..J..rg |
|00002ee0| 4c 61 6e 67 6f 77 73 6b | 69 00 00 00 0a 33 00 24 |Langowsk|i....3.$|
|00002ef0| 00 16 45 4d 42 4c 2c 20 | 63 2f 6f 20 49 2e 4c 2e |..EMBL, |c/o I.L.|
|00002f00| 4c 2e 2c 20 31 35 36 58 | 00 00 0a 3f 00 24 00 16 |L., 156X|...?.$..|
|00002f10| 46 2d 33 38 30 34 32 20 | 47 72 65 6e 6f 62 6c 65 |F-38042 |Grenoble|
|00002f20| 20 43 65 64 65 78 00 00 | 0a 4b 00 24 00 06 46 72 | Cedex..|.K.$..Fr|
|00002f30| 61 6e 63 65 00 00 0a 57 | 00 24 00 02 f3 00 00 00 |ance...W|.$......|
|00002f40| 0a 71 00 09 00 1c c2 c2 | fb 00 21 31 3a 20 54 6f |.q......|..!1: To|
|00002f50| 77 65 72 73 20 6f 66 20 | 48 61 6e 6f 69 20 63 6f |wers of |Hanoi co|
|00002f60| 64 65 00 00 0a 81 00 12 | 00 1e c6 c6 28 20 ff a9 |de......|....( ..|
|00002f70| 20 31 31 30 32 38 35 20 | 4d 61 63 54 75 74 6f 72 | 110285 |MacTutor|
|00002f80| 20 62 79 20 4a 4c 20 29 | 00 00 0a 8c 00 12 00 3c | by JL )|.......<|
|00002f90| c6 c6 3a 20 66 61 63 74 | 6f 72 69 61 6c 20 20 20 |..: fact|orial |
|00002fa0| 64 75 70 20 69 66 20 64 | 75 70 20 31 2d 20 66 61 |dup if d|up 1- fa|
|00002fb0| 63 74 6f 72 69 61 6c 20 | 2a 20 65 6c 73 65 20 64 |ctorial |* else d|
|00002fc0| 72 6f 70 20 31 20 74 68 | 65 6e 20 3b 00 00 0a 97 |rop 1 th|en ;....|
|00002fd0| 00 12 00 01 c6 00 00 00 | 0a a2 00 12 00 21 c6 c6 |........|.....!..|
|00002fe0| 3a 63 6c 61 73 73 20 74 | 6f 77 65 72 20 3c 73 75 |:class t|ower <su|
|00002ff0| 70 65 72 20 6f 72 64 65 | 72 65 64 2d 63 6f 6c 00 |per orde|red-col.|
|00003000| 00 00 0a ad 00 12 00 13 | c6 c6 20 20 20 20 20 20 |........|.. |
|00003010| 20 20 72 65 63 74 20 62 | 61 73 65 00 00 00 0a b8 | rect b|ase.....|
|00003020| 00 12 00 15 c6 c6 20 20 | 20 20 20 20 20 20 72 65 |...... | re|
|00003030| 63 74 20 63 6f 6c 75 6d | 6e 00 00 00 0a c3 00 12 |ct colum|n.......|
|00003040| 00 15 c6 c6 20 20 20 20 | 20 20 20 20 69 6e 74 20 |.... | int |
|00003050| 78 63 65 6e 74 65 72 00 | 00 00 0a ce 00 12 00 15 |xcenter.|........|
|00003060| c6 c6 20 20 20 20 20 20 | 20 20 69 6e 74 20 79 63 |.. | int yc|
|00003070| 65 6e 74 65 72 00 00 00 | 0a d9 00 12 00 01 c6 00 |enter...|........|
|00003080| 00 00 0a e4 00 12 00 2a | c6 c6 20 20 20 20 3a 4d |.......*|.. :M|
|00003090| 20 63 6c 61 73 73 69 6e | 69 74 3a 20 28 20 78 63 | classin|it: ( xc|
|000030a0| 65 6e 74 65 72 20 79 63 | 65 6e 74 65 72 20 2d 2d |enter yc|enter --|
|000030b0| 20 29 00 00 0a ef 00 12 | 00 27 c6 c6 20 20 20 20 | )......|.'.. |
|000030c0| 20 20 20 20 20 20 20 20 | 70 75 74 3a 20 79 63 65 | |put: yce|
|000030d0| 6e 74 65 72 20 70 75 74 | 3a 20 78 63 65 6e 74 65 |nter put|: xcente|
|000030e0| 72 00 00 00 0a fa 00 12 | 00 32 c6 c6 20 20 20 20 |r.......|.2.. |
|000030f0| 20 20 20 20 20 20 20 20 | 67 65 74 3a 20 78 63 65 | |get: xce|
|00003100| 6e 74 65 72 20 37 30 20 | 2d 20 20 67 65 74 3a 20 |nter 70 |- get: |
|00003110| 79 63 65 6e 74 65 72 20 | 31 36 20 2d 00 00 0b 05 |ycenter |16 -....|
|00003120| 00 12 00 39 c6 c6 20 20 | 20 20 20 20 20 20 20 20 |...9.. | |
|00003130| 20 20 67 65 74 3a 20 78 | 63 65 6e 74 65 72 20 37 | get: x|center 7|
|00003140| 30 20 2b 20 20 67 65 74 | 3a 20 79 63 65 6e 74 65 |0 + get|: ycente|
|00003150| 72 20 20 20 70 75 74 3a | 20 62 61 73 65 00 00 00 |r put:| base...|
|00003160| 0b 10 00 12 00 2d c6 c6 | 20 20 20 20 20 20 20 20 |.....-..| |
|00003170| 20 20 20 20 67 65 74 3a | 20 78 63 65 6e 74 65 72 | get:| xcenter|
|00003180| 20 34 20 2d 20 20 20 67 | 65 74 3a 20 79 63 65 6e | 4 - g|et: ycen|
|00003190| 74 65 72 00 00 00 0b 1b | 00 12 00 1b c6 89 c6 6c |ter.....|.......l|
|000031a0| 69 6d 69 74 3a 20 73 65 | 6c 66 20 31 30 20 2a 20 |imit: se|lf 10 * |
|000031b0| 35 30 20 2b 20 20 2d 00 | 00 00 0b 26 00 12 00 32 |50 + -.|...&...2|
|000031c0| c6 c6 20 20 20 20 20 20 | 20 20 20 20 20 20 67 65 |.. | ge|
|000031d0| 74 3a 20 78 63 65 6e 74 | 65 72 20 34 20 2b 20 20 |t: xcent|er 4 + |
|000031e0| 20 67 65 74 3a 20 79 63 | 65 6e 74 65 72 20 31 36 | get: yc|enter 16|
|000031f0| 20 2d 00 00 0b 31 00 12 | 00 0f c6 c6 20 90 70 75 | -...1..|.... .pu|
|00003200| 74 3a 20 63 6f 6c 75 6d | 6e 00 00 00 0b 3c 00 12 |t: colum|n....<..|
|00003210| 00 08 c6 c6 20 20 20 20 | 3b 4d 00 00 0b 47 00 12 |.... |;M...G..|
|00003220| 00 01 c6 00 00 00 0b 52 | 00 12 00 37 c6 c6 20 20 |.......R|...7.. |
|00003230| 20 20 3a 4d 20 64 72 61 | 77 3a 20 20 30 20 73 79 | :M dra|w: 0 sy|
|00003240| 73 70 61 74 20 64 75 70 | 20 66 69 6c 6c 3a 20 62 |spat dup| fill: b|
|00003250| 61 73 65 20 66 69 6c 6c | 3a 20 63 6f 6c 75 6d 6e |ase fill|: column|
|00003260| 20 3b 4d 00 00 00 0b 5d | 00 12 00 20 c6 c6 20 20 | ;M....]|... .. |
|00003270| 20 20 3a 4d 20 67 65 74 | 58 3a 20 20 20 67 65 74 | :M get|X: get|
|00003280| 3a 20 78 63 65 6e 74 65 | 72 20 3b 4d 00 00 0b 68 |: xcente|r ;M...h|
|00003290| 00 12 00 20 c6 c6 20 20 | 20 20 3a 4d 20 67 65 74 |... .. | :M get|
|000032a0| 59 3a 20 20 20 67 65 74 | 3a 20 79 63 65 6e 74 65 |Y: get|: ycente|
|000032b0| 72 20 3b 4d 00 00 0b 73 | 00 12 00 01 c6 00 00 00 |r ;M...s|........|
|000032c0| 0b 7e 00 12 00 08 c6 c6 | 3b 63 6c 61 73 73 00 00 |.~......|;class..|
|000032d0| 0b 89 00 12 00 01 c6 00 | 00 00 0b 94 00 12 00 1c |........|........|
|000032e0| c6 c6 3a 63 6c 61 73 73 | 20 64 69 73 6b 20 20 3c |..:class| disk <|
|000032f0| 73 75 70 65 72 20 6f 62 | 6a 65 63 74 00 00 0b 9f |super ob|ject....|
|00003300| 00 12 00 12 c6 c6 20 20 | 20 20 20 20 20 20 69 6e |...... | in|
|00003310| 74 20 73 69 7a 65 00 00 | 0b aa 00 12 00 11 c6 c6 |t size..|........|
|00003320| 20 20 20 20 20 20 20 20 | 76 61 72 20 fe 00 34 00 | |var ..4.|
|00003330| 00 00 0b b5 00 12 00 14 | c6 c6 20 20 20 20 20 20 |........|.. |
|00003340| 20 20 72 65 63 74 20 69 | 6d 61 67 65 00 00 0b c0 | rect i|mage....|
|00003350| 00 12 00 18 c6 c6 20 20 | 20 20 20 20 20 20 69 6e |...... | in|
|00003360| 74 20 78 63 20 20 69 6e | 74 20 79 63 00 00 0b cb |t xc in|t yc....|
|00003370| 00 12 00 24 c6 c6 20 20 | 20 20 3a 4d 20 63 6c 61 |...$.. | :M cla|
|00003380| 73 73 69 6e 69 74 3a 20 | 28 20 fd 00 34 73 69 7a |ssinit: |( ..4siz|
|00003390| 65 20 2d 2d 20 29 20 20 | 00 00 0b d6 00 12 00 29 |e -- ) |.......)|
|000033a0| c6 c6 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000033b0| 20 20 20 20 20 20 70 75 | 74 3a 20 73 69 7a 65 20 | pu|t: size |
|000033c0| 20 70 75 74 3a 20 fe 00 | 34 00 00 00 0b e1 00 12 | put: ..|4.......|
|000033d0| 00 35 c6 c6 20 20 20 20 | 20 20 20 20 20 20 20 20 |.5.. | |
|000033e0| 20 20 20 20 20 20 20 20 | 61 64 64 72 3a 20 73 65 | |addr: se|
|000033f0| 6c 66 20 20 61 64 64 3a | 20 5b 20 67 65 74 3a 20 |lf add:| [ get: |
|00003400| fd 00 34 5d 20 3b 4d 00 | 00 00 0b ec 00 12 00 0e |..4] ;M.|........|
|00003410| c6 c6 20 20 20 20 3a 4d | 20 64 72 61 77 3a 00 00 |.. :M| draw:..|
|00003420| 0b f7 00 12 00 27 c6 c6 | 20 20 20 20 20 20 20 20 |.....'..| |
|00003430| 20 20 20 20 67 65 74 58 | 3a 20 5b 20 67 65 74 3a | getX|: [ get:|
|00003440| 20 fd 00 34 5d 20 70 75 | 74 3a 20 78 63 00 00 00 | ..4] pu|t: xc...|
|00003450| 0c 02 00 12 00 1f c6 c6 | 20 20 20 20 20 20 20 20 |........| |
|00003460| 20 20 20 20 67 65 74 59 | 3a 20 5b 20 67 65 74 3a | getY|: [ get:|
|00003470| 20 fd 00 34 5d 00 00 00 | 0c 0d 00 12 00 38 c6 c6 | ..4]...|.....8..|
|00003480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003490| 20 31 32 20 2d 20 73 69 | 7a 65 3a 20 5b 20 67 65 | 12 - si|ze: [ ge|
|000034a0| 74 3a 20 fd 00 34 5d 20 | 31 30 20 2a 20 2d 20 70 |t: ..4] |10 * - p|
|000034b0| 75 74 3a 20 79 63 00 00 | 0c 18 00 12 00 2f c6 c6 |ut: yc..|...../..|
|000034c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 67 65 74 3a | | get:|
|000034d0| 20 78 63 20 67 65 74 3a | 20 73 69 7a 65 20 2d 20 | xc get:| size - |
|000034e0| 20 67 65 74 3a 20 79 63 | 20 34 2d 20 20 00 00 00 | get: yc| 4- ...|
|000034f0| 0c 23 00 12 00 39 c6 c6 | 20 20 20 20 20 20 20 20 |.#...9..| |
|00003500| 20 20 20 20 67 65 74 3a | 20 78 63 20 67 65 74 3a | get:| xc get:|
|00003510| 20 73 69 7a 65 20 2b 20 | 20 67 65 74 3a 20 79 63 | size + | get: yc|
|00003520| 20 34 2b 20 20 70 75 74 | 3a 20 69 6d 61 67 65 00 | 4+ put|: image.|
|00003530| 00 00 0c 2e 00 12 00 2f | c6 c6 20 20 20 20 20 20 |......./|.. |
|00003540| 20 20 20 20 20 20 33 20 | 73 79 73 70 61 74 20 66 | 3 |syspat f|
|00003550| 69 6c 6c 3a 20 69 6d 61 | 67 65 20 20 64 72 61 77 |ill: ima|ge draw|
|00003560| 3a 20 69 6d 61 67 65 00 | 00 00 0c 39 00 12 00 08 |: image.|...9....|
|00003570| c6 c6 20 20 20 20 3b 4d | 00 00 0c 44 00 12 00 01 |.. ;M|...D....|
|00003580| c6 00 00 00 0c 4f 00 12 | 00 26 c6 c6 20 20 20 20 |.....O..|.&.. |
|00003590| 3a 4d 20 75 6e 64 72 61 | 77 3a 20 31 39 20 73 79 |:M undra|w: 19 sy|
|000035a0| 73 70 61 74 20 66 69 6c | 6c 3a 20 69 6d 61 67 65 |spat fil|l: image|
|000035b0| 00 00 0c 5a 00 12 00 23 | c6 c6 20 20 20 20 20 20 |...Z...#|.. |
|000035c0| 20 20 20 20 20 20 67 65 | 74 3a 20 78 63 20 34 2d | ge|t: xc 4-|
|000035d0| 20 67 65 74 3a 20 79 63 | 20 34 2d 00 00 00 0c 65 | get: yc| 4-....e|
|000035e0| 00 12 00 2f c6 c6 20 20 | 20 20 20 20 20 20 20 20 |.../.. | |
|000035f0| 20 20 67 65 74 3a 20 78 | 63 20 34 2b 20 67 65 74 | get: x|c 4+ get|
|00003600| 3a 20 79 63 20 34 2b 20 | 20 70 75 74 3a 20 69 6d |: yc 4+ | put: im|
|00003610| 61 67 65 00 00 00 0c 70 | 00 12 00 22 c6 c6 20 20 |age....p|...".. |
|00003620| 20 20 20 20 20 20 20 20 | 20 20 30 20 73 79 73 70 | | 0 sysp|
|00003630| 61 74 20 66 69 6c 6c 3a | 20 69 6d 61 67 65 00 00 |at fill:| image..|
|00003640| 0c 7b 00 12 00 08 c6 c6 | 20 20 20 20 3b 4d 00 00 |.{......| ;M..|
|00003650| 0c 86 00 12 00 01 c6 00 | 00 00 0c 91 00 12 00 1a |........|........|
|00003660| c6 c6 20 20 20 20 3a 4d | 20 6d 6f 76 65 3a 20 7b |.. :M| move: {|
|00003670| 20 64 65 73 74 20 2d 2d | 20 7d 00 00 0c 9c 00 12 | dest --| }......|
|00003680| 00 1a c6 c6 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00003690| 75 6e 64 72 61 77 3a 20 | 73 65 6c 66 00 00 0c a7 |undraw: |self....|
|000036a0| 00 12 00 26 c6 c6 20 20 | 20 20 20 20 20 20 20 20 |...&.. | |
|000036b0| 20 20 61 64 64 72 3a 20 | 73 65 6c 66 20 61 64 64 | addr: |self add|
|000036c0| 3a 20 5b 20 64 65 73 74 | 20 5d 00 00 0c b2 00 12 |: [ dest| ]......|
|000036d0| 00 23 c6 c6 20 20 20 20 | 20 20 20 20 20 20 20 20 |.#.. | |
|000036e0| 73 69 7a 65 3a 20 5b 20 | 67 65 74 3a 20 fd 00 34 |size: [ |get: ..4|
|000036f0| 5d 20 31 2d 20 00 00 00 | 0c bd 00 12 00 21 c6 c6 |] 1- ...|.....!..|
|00003700| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 6d 6f | | remo|
|00003710| 76 65 3a 20 5b 20 67 65 | 74 3a 20 fd 00 34 5d 00 |ve: [ ge|t: ..4].|
|00003720| 00 00 0c c8 00 12 00 27 | c6 c6 20 20 20 20 20 20 |.......'|.. |
|00003730| 20 20 20 20 20 20 64 65 | 73 74 20 70 75 74 3a 20 | de|st put: |
|00003740| fd 00 34 20 20 64 72 61 | 77 3a 20 73 65 6c 66 00 |..4 dra|w: self.|
|00003750| 00 00 0c d3 00 12 00 08 | c6 c6 20 20 20 20 3b 4d |........|.. ;M|
|00003760| 00 00 0c de 00 12 00 08 | c6 c6 3b 63 6c 61 73 73 |........|..;class|
|00003770| 00 00 0c e9 00 12 00 10 | c6 c6 33 20 61 72 72 61 |........|..3 arra|
|00003780| 79 20 74 6f 77 65 72 73 | 00 00 0c f4 00 12 00 1d |y towers|........|
|00003790| c6 c6 3a 20 6d 61 6b 65 | 2e 74 6f 77 65 72 73 20 |..: make|.towers |
|000037a0| 7b 20 6e 64 69 73 6b 73 | 20 2d 2d 20 7d 00 00 00 |{ ndisks| -- }...|
|000037b0| 0c ff 00 12 00 0b c6 c6 | 20 20 20 33 20 30 20 64 |........| 3 0 d|
|000037c0| 6f 00 00 00 0d 0a 00 12 | 00 2f c6 c6 20 20 20 20 |o.......|./.. |
|000037d0| 20 20 69 20 31 35 30 20 | 2a 20 31 30 30 20 2b 20 | i 150 |* 100 + |
|000037e0| 20 32 38 30 20 6e 64 69 | 73 6b 73 20 20 68 65 61 | 280 ndi|sks hea|
|000037f0| 70 3e 20 74 6f 77 65 72 | 20 00 00 00 0d 15 00 12 |p> tower| .......|
|00003800| 00 1c c6 c6 20 20 20 20 | 20 20 69 20 74 6f 3a 20 |.... | i to: |
|00003810| 74 6f 77 65 72 73 20 20 | 6c 6f 6f 70 20 3b 00 00 |towers |loop ;..|
|00003820| 0d 20 00 12 00 01 c6 00 | 00 00 0d 2b 00 12 00 0f |. ......|...+....|
|00003830| c6 c6 3a 20 64 72 61 77 | 2e 74 6f 77 65 72 73 00 |..: draw|.towers.|
|00003840| 00 00 0d 36 00 12 00 29 | c6 c6 20 20 20 33 20 30 |...6...)|.. 3 0|
|00003850| 20 64 6f 20 64 72 61 77 | 3a 20 5b 20 69 20 61 74 | do draw|: [ i at|
|00003860| 3a 20 74 6f 77 65 72 73 | 20 5d 20 6c 6f 6f 70 20 |: towers| ] loop |
|00003870| 3b 00 00 00 0d 41 00 12 | 00 01 c6 00 00 00 0d 4c |;....A..|.......L|
|00003880| 00 12 00 35 c6 c6 3a 20 | 64 69 73 70 6f 73 65 2e |...5..: |dispose.|
|00003890| 74 6f 77 65 72 73 20 20 | 20 33 20 30 20 64 6f 20 |towers | 3 0 do |
|000038a0| 20 69 20 64 69 73 70 6f | 73 65 3a 20 74 6f 77 65 | i dispo|se: towe|
|000038b0| 72 73 20 6c 6f 6f 70 20 | 3b 00 00 00 0d 57 00 12 |rs loop |;....W..|
|000038c0| 00 01 c6 00 00 00 0d 62 | 00 12 00 25 c6 c6 3a 20 |.......b|...%..: |
|000038d0| 68 61 6e 6f 69 20 7b 20 | 6e 20 73 74 61 72 74 20 |hanoi { |n start |
|000038e0| 69 6e 74 65 72 20 66 69 | 6e 69 73 68 20 2d 2d 20 |inter fi|nish -- |
|000038f0| 7d 00 00 00 0d 6d 00 12 | 00 2a c6 c6 20 20 20 6e |}....m..|.*.. n|
|00003900| 20 69 66 20 20 20 6e 20 | 31 2d 20 20 73 74 61 72 | if n |1- star|
|00003910| 74 20 66 69 6e 69 73 68 | 20 69 6e 74 65 72 20 68 |t finish| inter h|
|00003920| 61 6e 6f 69 00 00 0d 78 | 00 12 00 1e c6 c6 20 20 |anoi...x|...... |
|00003930| 20 20 20 20 20 20 20 20 | 66 69 6e 69 73 68 20 61 | |finish a|
|00003940| 74 3a 20 74 6f 77 65 72 | 73 20 00 00 0d 83 00 12 |t: tower|s ......|
|00003950| 00 37 c6 c6 20 20 20 20 | 20 20 20 20 20 20 20 20 |.7.. | |
|00003960| 20 20 20 6d 6f 76 65 3a | 20 5b 20 6c 61 73 74 3a | move:| [ last:|
|00003970| 20 5b 20 73 74 61 72 74 | 20 61 74 3a 20 74 6f 77 | [ start| at: tow|
|00003980| 65 72 73 20 5d 20 5d 20 | 20 00 00 00 0d 8e 00 12 |ers ] ] | .......|
|00003990| 00 2b c6 c6 20 20 20 20 | 20 20 20 20 20 20 6e 20 |.+.. | n |
|000039a0| 31 2d 20 20 20 69 6e 74 | 65 72 20 73 74 61 72 74 |1- int|er start|
|000039b0| 20 66 69 6e 69 73 68 20 | 68 61 6e 6f 69 00 00 00 | finish |hanoi...|
|000039c0| 0d 99 00 12 00 0b c6 c6 | 20 20 20 20 20 74 68 65 |........| the|
|000039d0| 6e 00 00 00 0d a4 00 12 | 00 03 c6 c6 3b 00 00 00 |n.......|....;...|
|000039e0| 0d af 00 12 00 17 c6 c6 | 3a 20 6d 61 69 6e 20 20 |........|: main |
|000039f0| 7b 20 6e 64 69 73 6b 73 | 20 2d 2d 20 7d 00 00 00 |{ ndisks| -- }...|
|00003a00| 0d ba 00 12 00 29 c6 c6 | 20 20 20 20 6e 64 69 73 |.....)..| ndis|
|00003a10| 6b 73 20 6d 61 6b 65 2e | 74 6f 77 65 72 73 20 20 |ks make.|towers |
|00003a20| 63 6c 73 20 64 72 61 77 | 2e 74 6f 77 65 72 73 00 |cls draw|.towers.|
|00003a30| 00 00 0d c5 00 12 00 11 | c6 c6 20 20 20 20 6e 64 |........|.. nd|
|00003a40| 69 73 6b 73 20 30 20 64 | 6f 00 00 00 0d d0 00 12 |isks 0 d|o.......|
|00003a50| 00 37 c6 c6 20 20 20 20 | 20 20 20 30 20 61 74 3a |.7.. | 0 at:|
|00003a60| 20 74 6f 77 65 72 73 20 | 36 20 6e 64 69 73 6b 73 | towers |6 ndisks|
|00003a70| 20 69 20 2d 20 34 2a 20 | 2b 20 68 65 61 70 3e 20 | i - 4* |+ heap> |
|00003a80| 64 69 73 6b 20 64 72 6f | 70 00 00 00 0d db 00 12 |disk dro|p.......|
|00003a90| 00 3e c6 c6 20 20 20 20 | 20 20 20 20 20 20 20 20 |.>.. | |
|00003aa0| 20 20 20 20 20 20 20 20 | 20 20 20 64 72 61 77 3a | | draw:|
|00003ab0| 20 5b 20 6c 61 73 74 3a | 20 5b 20 30 20 61 74 3a | [ last:| [ 0 at:|
|00003ac0| 20 74 6f 77 65 72 73 20 | 5d 20 5d 20 6c 6f 6f 70 | towers |] ] loop|
|00003ad0| 00 00 0d e6 00 12 00 03 | c6 c6 3b 00 00 00 0d f2 |........|..;.....|
|00003ae0| 00 24 00 02 f5 00 00 00 | 0d fd 00 24 00 01 c1 00 |.$......|...$....|
|00003af0| 00 00 0e 08 00 24 00 01 | c1 00 00 00 0e 13 00 24 |.....$..|.......$|
|00003b00| 00 01 c1 00 44 52 00 00 | 00 00 00 12 53 65 72 69 |....DR..|....Seri|
|00003b10| 61 6c 20 50 6f 72 74 20 | 41 63 63 65 73 73 00 ff |al Port |Access..|
|00003b20| 01 e7 00 00 00 0c 00 09 | 00 0e c2 c2 fb 00 32 4e |........|......2N|
|00003b30| 75 6d 62 65 72 3a 97 32 | 00 00 00 18 00 09 00 11 |umber:.2|........|
|00003b40| c2 c2 49 73 73 75 65 20 | 4e 75 6d 62 65 72 3a a2 |..Issue |Number:.|
|00003b50| 31 00 00 00 00 24 00 09 | 00 20 c2 c2 43 6f 6c 75 |1....$..|. ..Colu|
|00003b60| 6d 6e 20 54 61 67 3a b0 | 54 68 65 20 45 6c 65 63 |mn Tag:.|The Elec|
|00003b70| 74 72 69 63 61 6c 20 4d | 61 63 00 00 00 57 00 09 |trical M|ac...W..|
|00003b80| 00 23 c4 c3 44 69 72 65 | 63 74 20 53 65 72 69 61 |.#..Dire|ct Seria|
|00003b90| 6c 20 50 6f 72 74 20 41 | 63 63 65 73 73 80 01 7a |l Port A|ccess..z|
|00003ba0| f0 00 82 00 2d 00 00 00 | 00 6c 00 09 00 40 c5 c5 |....-...|.l...@..|
|00003bb0| 42 79 20 4a 65 66 66 20 | 4d 69 74 63 68 65 6c 6c |By Jeff |Mitchell|
|00003bc0| 2c 20 50 72 65 73 69 64 | 65 6e 74 2c 20 44 69 67 |, Presid|ent, Dig|
|00003bd0| 69 74 61 6c 20 53 6f 6c | 75 74 69 6f 6e 73 2c 20 |ital Sol|utions, |
|00003be0| 49 6e 63 2e 2c 20 4d 61 | 63 54 75 74 6f 72 00 00 |Inc., Ma|cTutor..|
|00003bf0| 00 78 00 09 00 14 c5 43 | 6f 6e 74 72 69 62 75 74 |.x.....C|ontribut|
|00003c00| 69 6e 67 20 45 64 69 74 | 6f 72 00 00 00 90 00 24 |ing Edit|or.....$|
|00003c10| 00 51 54 68 65 20 73 65 | 72 69 61 6c 20 70 6f 72 |.QThe se|rial por|
|00003c20| 74 73 20 63 6f 6e 74 69 | 6e 75 65 20 74 6f 20 62 |ts conti|nue to b|
|00003c30| 65 20 61 20 70 6f 70 75 | 6c 61 72 20 66 6f 72 6d |e a popu|lar form|
|00003c40| 20 6f 66 20 66 72 75 73 | 74 72 61 74 69 6f 6e 20 | of frus|tration |
|00003c50| 66 6f 72 20 6d 61 6e 79 | 20 6f 66 20 75 73 2e 20 |for many| of us. |
|00003c60| 20 49 66 00 00 00 00 9c | 00 09 00 55 79 6f 75 20 | If.....|...Uyou |
|00003c70| 61 72 65 20 74 69 72 65 | 64 20 6f 66 20 64 65 63 |are tire|d of dec|
|00003c80| 69 70 68 65 72 69 6e 67 | 20 fb 00 1e 4d 61 63 69 |iphering| ...Maci|
|00003c90| 6e 74 6f 73 68 20 61 6e | 64 20 77 6f 75 6c 64 20 |ntosh an|d would |
|00003ca0| 6a 75 73 74 20 6c 69 6b | 65 20 74 6f 20 74 61 6c |just lik|e to tal|
|00003cb0| 6b 20 64 69 72 65 63 74 | 6c 79 20 74 6f 20 74 68 |k direct|ly to th|
|00003cc0| 65 00 00 00 00 a8 00 09 | 00 56 73 65 72 69 61 6c |e.......|.Vserial|
|00003cd0| 20 70 6f 72 74 73 2c 20 | 73 74 61 79 20 74 75 6e | ports, |stay tun|
|00003ce0| 65 64 2e 20 20 49 27 6d | 20 67 6f 69 6e 67 20 74 |ed. I'm| going t|
|00003cf0| 6f 20 64 65 73 63 72 69 | 62 65 20 73 6f 6d 65 20 |o descri|be some |
|00003d00| 6f 66 20 74 68 65 20 69 | 6e 6e 65 72 20 77 6f 72 |of the i|nner wor|
|00003d10| 6b 69 6e 67 73 20 6f 66 | 20 74 68 65 20 53 43 43 |kings of| the SCC|
|00003d20| 00 00 00 b4 00 09 00 51 | 61 6e 64 20 6c 65 74 20 |.......Q|and let |
|00003d30| 79 6f 75 20 6b 6e 6f 77 | 20 77 68 65 72 65 20 74 |you know| where t|
|00003d40| 6f 20 77 72 69 74 65 20 | 74 6f 20 67 65 74 20 74 |o write |to get t|
|00003d50| 68 65 20 74 65 63 68 6e | 69 63 61 6c 20 6d 61 6e |he techn|ical man|
|00003d60| 75 61 6c 2c 20 fd 00 34 | 77 69 6c 6c 20 74 65 6c |ual, ..4|will tel|
|00003d70| 6c 20 79 6f 75 20 74 68 | 65 00 00 00 00 c0 00 09 |l you th|e.......|
|00003d80| 00 56 72 65 73 74 2e 20 | 20 49 27 6d 20 61 6c 73 |.Vrest. | I'm als|
|00003d90| 6f 20 69 6e 63 6c 75 64 | 69 6e 67 20 63 6f 6d 70 |o includ|ing comp|
|00003da0| 6c 65 74 65 20 70 69 6e | 6f 75 74 73 20 6f 66 20 |lete pin|outs of |
|00003db0| 61 6c 6c 20 74 68 65 20 | 4d 61 63 27 73 20 63 6f |all the |Mac's co|
|00003dc0| 6e 6e 65 63 74 6f 72 73 | 20 61 6e 64 20 61 20 63 |nnectors| and a c|
|00003dd0| 6f 75 70 6c 65 20 6f 66 | 00 00 00 cc 00 09 00 0e |ouple of|........|
|00003de0| 63 61 62 6c 65 20 70 69 | 6e 6f 75 74 73 2e 00 00 |cable pi|nouts...|
|00003df0| 00 e2 00 b2 00 0e c2 c2 | 50 4f 52 54 20 50 49 4e |........|PORT PIN|
|00003e00| 4f 55 54 53 00 00 01 01 | 00 09 00 13 c2 c2 53 45 |OUTS....|......SE|
|00003e10| 52 49 41 4c 20 43 4f 4e | 4e 45 43 54 4f 52 53 00 |RIAL CON|NECTORS.|
|00003e20| 00 00 01 12 00 24 00 16 | 50 69 6e 20 23 af 4e 61 |.....$..|Pin #.Na|
|00003e30| 6d 65 ae 44 65 73 63 72 | 69 70 74 69 6f 6e 00 00 |me.Descr|iption..|
|00003e40| 01 1e 00 24 00 17 31 80 | 00 70 43 47 4e 44 ae 43 |...$..1.|.pCGND.C|
|00003e50| 68 61 73 73 69 73 20 67 | 72 6f 75 6e 64 00 00 00 |hassis g|round...|
|00003e60| 01 2a 00 24 00 15 32 80 | 00 70 2b 35 56 b3 35 20 |.*.$..2.|.p+5V.5 |
|00003e70| 56 6f 6c 74 20 6f 75 74 | 70 75 74 00 00 00 01 36 |Volt out|put....6|
|00003e80| 00 24 00 17 33 80 00 70 | 43 47 4e 44 ae 43 68 61 |.$..3..p|CGND.Cha|
|00003e90| 73 73 69 73 20 67 72 6f | 75 6e 64 00 00 00 01 42 |ssis gro|und....B|
|00003ea0| 00 24 00 24 34 80 00 70 | 54 78 44 2b ad 54 72 61 |.$.$4..p|TxD+.Tra|
|00003eb0| 6e 73 6d 69 74 20 64 61 | 74 61 20 2d 20 6e 6f 6e |nsmit da|ta - non|
|00003ec0| 69 6e 76 65 72 74 65 64 | 00 00 01 4e 00 24 00 21 |inverted|...N.$.!|
|00003ed0| 35 80 00 70 54 78 44 2d | ae 54 72 61 6e 73 6d 69 |5..pTxD-|.Transmi|
|00003ee0| 74 20 64 61 74 61 20 2d | 20 69 6e 76 65 72 74 65 |t data -| inverte|
|00003ef0| 64 00 00 00 01 5a 00 24 | 00 17 36 80 00 70 2b 31 |d....Z.$|..6..p+1|
|00003f00| 32 56 ac 31 32 20 56 6f | 6c 74 20 6f 75 74 70 75 |2V.12 Vo|lt outpu|
|00003f10| 74 00 00 00 01 66 00 24 | 00 35 37 80 00 70 48 53 |t....f.$|.57..pHS|
|00003f20| 4b b4 48 61 6e 64 73 68 | 61 6b 65 3a 20 20 43 54 |K.Handsh|ake: CT|
|00003f30| 53 20 6f 72 20 54 52 78 | 43 20 64 65 70 65 6e 64 |S or TRx|C depend|
|00003f40| 69 6e 67 20 6f 6e 20 53 | 43 43 20 6d 6f 64 65 00 |ing on S|CC mode.|
|00003f50| 00 00 01 72 00 24 00 23 | 38 80 00 70 52 78 44 2b |...r.$.#|8..pRxD+|
|00003f60| ac 52 65 63 65 69 76 65 | 20 64 61 74 61 20 2d 20 |.Receive| data - |
|00003f70| 6e 6f 6e 69 6e 76 65 72 | 74 65 64 00 00 00 01 7e |noninver|ted....~|
|00003f80| 00 24 00 20 39 80 00 70 | 52 78 44 2d ad 52 65 63 |.$. 9..p|RxD-.Rec|
|00003f90| 65 69 76 65 20 64 61 74 | 61 20 2d 20 69 6e 76 65 |eive dat|a - inve|
|00003fa0| 72 74 65 64 00 00 01 98 | 00 09 00 11 c2 c2 4d 4f |rted....|......MO|
|00003fb0| 55 53 45 20 43 4f 4e 4e | 45 43 54 4f 52 00 00 00 |USE CONN|ECTOR...|
|00003fc0| 01 a9 00 24 00 16 50 69 | 6e 20 23 af 4e 61 6d 65 |...$..Pi|n #.Name|
|00003fd0| ae 44 65 73 63 72 69 70 | 74 69 6f 6e 00 00 01 b5 |.Descrip|tion....|
|00003fe0| 00 24 00 17 31 80 00 70 | 43 47 4e 44 ae 43 68 61 |.$..1..p|CGND.Cha|
|00003ff0| 73 73 69 73 20 67 72 6f | 75 6e 64 00 00 00 01 c1 |ssis gro|und.....|
|00004000| 00 24 00 15 32 80 00 70 | 2b 35 56 b3 35 20 56 6f |.$..2..p|+5V.5 Vo|
|00004010| 6c 74 20 6f 75 74 70 75 | 74 00 00 00 01 cd 00 24 |lt outpu|t......$|
|00004020| 00 17 33 80 00 70 43 47 | 4e 44 ae 43 68 61 73 73 |..3..pCG|ND.Chass|
|00004030| 69 73 20 67 72 6f 75 6e | 64 00 00 00 01 d9 00 24 |is groun|d......$|
|00004040| 00 36 34 80 00 70 58 32 | bb 48 6f 72 69 7a 6f 6e |.64..pX2|.Horizon|
|00004050| 74 61 6c 20 6d 6f 76 65 | 6d 65 6e 74 20 6c 69 6e |tal move|ment lin|
|00004060| 65 20 28 63 6f 6e 6e 65 | 63 74 65 64 20 74 6f 20 |e (conne|cted to |
|00004070| 56 49 41 20 50 42 34 29 | 00 00 01 e5 00 24 00 31 |VIA PB4)|.....$.1|
|00004080| 35 80 00 70 58 31 bb 48 | 6f 72 69 7a 6f 6e 74 61 |5..pX1.H|orizonta|
|00004090| 6c 20 6d 6f 76 65 6d 65 | 6e 74 20 6c 69 6e 65 20 |l moveme|nt line |
|000040a0| 28 63 6f 6e 6e 65 63 74 | 65 64 20 74 6f 20 53 43 |(connect|ed to SC|
|000040b0| 43 00 00 00 01 f1 00 09 | 00 05 44 43 44 41 29 00 |C.......|..DCDA).|
|000040c0| 00 00 01 fd 00 24 00 15 | 36 80 00 70 4e 2f 43 b5 |.....$..|6..pN/C.|
|000040d0| 4e 6f 74 20 63 6f 6e 6e | 65 63 74 65 64 00 00 00 |Not conn|ected...|
|000040e0| 02 09 00 24 00 26 37 80 | 00 70 53 57 b8 4d 6f 75 |...$.&7.|.pSW.Mou|
|000040f0| 73 65 20 fd 00 08 28 63 | 6f 6e 6e 65 63 74 65 64 |se ...(c|onnected|
|00004100| 20 74 6f 20 56 49 41 20 | 50 42 33 29 00 00 02 15 | to VIA |PB3)....|
|00004110| 00 24 00 34 38 80 00 70 | 59 32 bb 56 65 72 74 69 |.$.48..p|Y2.Verti|
|00004120| 63 61 6c 20 6d 6f 76 65 | 6d 65 6e 74 20 6c 69 6e |cal move|ment lin|
|00004130| 65 20 28 63 6f 6e 6e 65 | 63 74 65 64 20 74 6f 20 |e (conne|cted to |
|00004140| 56 49 41 20 50 42 35 29 | 00 00 02 21 00 24 00 35 |VIA PB5)|...!.$.5|
|00004150| 39 80 00 70 59 31 bb 56 | 65 72 74 69 63 61 6c 20 |9..pY1.V|ertical |
|00004160| 6d 6f 76 65 6d 65 6e 74 | 20 6c 69 6e 65 20 28 63 |movement| line (c|
|00004170| 6f 6e 6e 65 63 74 65 64 | 20 74 6f 20 53 43 43 20 |onnected| to SCC |
|00004180| 44 43 44 42 29 00 00 00 | 02 3b 00 09 00 14 c2 c2 |DCDB)...|.;......|
|00004190| 4b 45 59 42 4f 41 52 44 | 20 43 4f 4e 4e 45 43 54 |KEYBOARD| CONNECT|
|000041a0| 4f 52 00 00 02 4c 00 24 | 00 16 50 69 6e 20 23 af |OR...L.$|..Pin #.|
|000041b0| 4e 61 6d 65 ae 44 65 73 | 63 72 69 70 74 69 6f 6e |Name.Des|cription|
|000041c0| 00 00 02 58 00 24 00 17 | 31 80 00 70 43 47 4e 44 |...X.$..|1..pCGND|
|000041d0| ae 43 68 61 73 73 69 73 | 20 67 72 6f 75 6e 64 00 |.Chassis| ground.|
|000041e0| 00 00 02 64 00 24 00 17 | 32 80 00 70 4b 42 44 31 |...d.$..|2..pKBD1|
|000041f0| ac 4b 65 79 62 6f 61 72 | 64 20 63 6c 6f 63 6b 00 |.Keyboar|d clock.|
|00004200| 00 00 02 70 00 24 00 16 | 33 80 00 70 4b 42 44 32 |...p.$..|3..pKBD2|
|00004210| ac 4b 65 79 62 6f 61 72 | 64 20 64 61 74 61 00 00 |.Keyboar|d data..|
|00004220| 02 7c 00 24 00 15 34 80 | 00 70 2b 35 56 b3 35 20 |.|.$..4.|.p+5V.5 |
|00004230| 56 6f 6c 74 20 6f 75 74 | 70 75 74 00 00 00 02 96 |Volt out|put.....|
|00004240| 00 09 00 1a c2 c2 45 58 | 54 45 52 4e 41 4c 20 44 |......EX|TERNAL D|
|00004250| 52 49 56 45 20 43 4f 4e | 4e 45 43 54 4f 52 00 00 |RIVE CON|NECTOR..|
|00004260| 02 a7 00 24 00 16 50 69 | 6e 20 23 af 4e 61 6d 65 |...$..Pi|n #.Name|
|00004270| ae 44 65 73 63 72 69 70 | 74 69 6f 6e 00 00 02 b3 |.Descrip|tion....|
|00004280| 00 24 00 17 31 80 00 70 | 43 47 4e 44 ae 43 68 61 |.$..1..p|CGND.Cha|
|00004290| 73 73 69 73 20 67 72 6f | 75 6e 64 00 00 00 02 bf |ssis gro|und.....|
|000042a0| 00 24 00 17 32 80 00 70 | 43 47 4e 44 ae 43 68 61 |.$..2..p|CGND.Cha|
|000042b0| 73 73 69 73 20 67 72 6f | 75 6e 64 00 00 00 02 cb |ssis gro|und.....|
|000042c0| 00 24 00 17 33 80 00 70 | 43 47 4e 44 ae 43 68 61 |.$..3..p|CGND.Cha|
|000042d0| 73 73 69 73 20 67 72 6f | 75 6e 64 00 00 00 02 d7 |ssis gro|und.....|
|000042e0| 00 24 00 17 34 80 00 70 | 43 47 4e 44 ae 43 68 61 |.$..4..p|CGND.Cha|
|000042f0| 73 73 69 73 20 67 72 6f | 75 6e 64 00 00 00 02 e3 |ssis gro|und.....|
|00004300| 00 24 00 1d 35 80 00 70 | 2d 31 32 56 ad 4d 69 6e |.$..5..p|-12V.Min|
|00004310| 75 73 20 31 32 20 56 6f | 6c 74 20 6f 75 74 70 75 |us 12 Vo|lt outpu|
|00004320| 74 00 00 00 02 ef 00 24 | 00 15 36 80 00 70 2b 35 |t......$|..6..p+5|
|00004330| 56 b3 35 20 56 6f 6c 74 | 20 6f 75 74 70 75 74 00 |V.5 Volt| output.|
|00004340| 00 00 02 fb 00 24 00 17 | 37 80 00 70 2b 31 32 56 |.....$..|7..p+12V|
|00004350| ac 31 32 20 56 6f 6c 74 | 20 6f 75 74 70 75 74 00 |.12 Volt| output.|
|00004360| 00 00 03 07 00 24 00 17 | 38 80 00 70 2b 31 32 56 |.....$..|8..p+12V|
|00004370| ac 31 32 20 56 6f 6c 74 | 20 6f 75 74 70 75 74 00 |.12 Volt| output.|
|00004380| 00 00 03 13 00 24 00 15 | 39 80 00 70 4e 2f 43 b5 |.....$..|9..pN/C.|
|00004390| 4e 6f 74 20 63 6f 6e 6e | 65 63 74 65 64 00 00 00 |Not conn|ected...|
|000043a0| 03 1f 00 24 00 27 31 30 | be 50 57 4d ae 52 65 67 |...$.'10|.PWM.Reg|
|000043b0| 75 6c 61 74 65 73 20 74 | 68 65 20 73 70 65 65 64 |ulates t|he speed|
|000043c0| 20 6f 66 20 74 68 65 20 | 64 72 69 76 65 00 00 00 | of the |drive...|
|000043d0| 03 2b 00 24 00 31 31 31 | be 50 48 30 b3 43 6f 6e |.+.$.111|.PH0.Con|
|000043e0| 74 72 6f 6c 20 6c 69 6e | 65 20 74 6f 20 73 65 6e |trol lin|e to sen|
|000043f0| 64 20 63 6f 6d 6d 61 6e | 64 73 20 74 6f 20 74 68 |d comman|ds to th|
|00004400| 65 20 64 72 69 76 65 00 | 00 00 03 37 00 24 00 31 |e drive.|...7.$.1|
|00004410| 31 32 be 50 48 31 b3 43 | 6f 6e 74 72 6f 6c 20 6c |12.PH1.C|ontrol l|
|00004420| 69 6e 65 20 74 6f 20 73 | 65 6e 64 20 63 6f 6d 6d |ine to s|end comm|
|00004430| 61 6e 64 73 20 74 6f 20 | 74 68 65 20 64 72 69 76 |ands to |the driv|
|00004440| 65 00 00 00 03 43 00 24 | 00 31 31 33 be 50 48 32 |e....C.$|.113.PH2|
|00004450| b3 43 6f 6e 74 72 6f 6c | 20 6c 69 6e 65 20 74 6f |.Control| line to|
|00004460| 20 73 65 6e 64 20 63 6f | 6d 6d 61 6e 64 73 20 74 | send co|mmands t|
|00004470| 6f 20 74 68 65 20 64 72 | 69 76 65 00 00 00 03 4f |o the dr|ive....O|
|00004480| 00 24 00 31 31 34 be 50 | 48 33 b3 43 6f 6e 74 72 |.$.114.P|H3.Contr|
|00004490| 6f 6c 20 6c 69 6e 65 20 | 74 6f 20 73 65 6e 64 20 |ol line |to send |
|000044a0| 63 6f 6d 6d 61 6e 64 73 | 20 74 6f 20 74 68 65 20 |commands| to the |
|000044b0| 64 72 69 76 65 00 00 00 | 03 5b 00 24 00 38 31 35 |drive...|.[.$.815|
|000044c0| be 57 72 52 65 71 a7 54 | 75 72 6e 73 20 6f 6e 20 |.WrReq.T|urns on |
|000044d0| 74 68 65 20 61 62 69 6c | 69 74 79 20 74 6f 20 77 |the abil|ity to w|
|000044e0| 72 69 74 65 20 64 61 74 | 61 20 74 6f 20 74 68 65 |rite dat|a to the|
|000044f0| 20 64 72 69 76 65 00 00 | 03 67 00 24 00 33 31 36 | drive..|.g.$.316|
|00004500| be 48 64 53 65 6c ad 43 | 6f 6e 74 72 6f 6c 20 6c |.HdSel.C|ontrol l|
|00004510| 69 6e 65 20 74 6f 20 73 | 65 6e 64 20 63 6f 6d 6d |ine to s|end comm|
|00004520| 61 6e 64 73 20 74 6f 20 | 74 68 65 20 64 72 69 76 |ands to |the driv|
|00004530| 65 00 00 00 03 73 00 24 | 00 2d 31 37 be 45 6e 62 |e....s.$|.-17.Enb|
|00004540| 6c 32 ab 45 6e 61 62 6c | 65 73 20 74 68 65 20 52 |l2.Enabl|es the R|
|00004550| 64 20 6c 69 6e 65 20 28 | 6f 74 68 65 72 77 69 73 |d line (|otherwis|
|00004560| 65 20 52 64 20 69 73 00 | 00 00 03 7f 00 b8 00 0f |e Rd is.|........|
|00004570| 68 69 67 68 2d 69 6d 70 | 65 64 65 6e 63 65 29 00 |high-imp|edence).|
|00004580| 00 00 03 8b 00 24 00 1e | 31 38 be 52 64 bc 44 61 |.....$..|18.Rd.Da|
|00004590| 74 61 20 72 65 61 64 20 | 66 72 6f 6d 20 74 68 65 |ta read |from the|
|000045a0| 20 64 72 69 76 65 00 00 | 03 97 00 24 00 1f 31 39 | drive..|...$..19|
|000045b0| be 57 72 b8 44 61 74 61 | 20 77 72 69 74 74 65 6e |.Wr.Data| written|
|000045c0| 20 74 6f 20 74 68 65 20 | 64 72 69 76 65 00 00 00 | to the |drive...|
|000045d0| 03 ad 00 af 00 0f c2 c2 | 43 41 42 4c 45 20 50 49 |........|CABLE PI|
|000045e0| 4e 4f 55 54 53 00 00 00 | 03 cc 00 09 00 13 c2 c2 |NOUTS...|........|
|000045f0| 49 4d 41 47 45 57 52 49 | 54 45 52 20 43 41 42 4c |IMAGEWRI|TER CABL|
|00004600| 45 00 00 00 03 dd 00 24 | 00 23 4d 61 63 20 70 69 |E......$|.#Mac pi|
|00004610| 6e 20 23 9a 4e 61 6d 65 | b7 49 57 20 70 69 6e 20 |n #.Name|.IW pin |
|00004620| 23 9b 44 65 73 63 72 69 | 70 74 69 6f 6e 00 00 00 |#.Descri|ption...|
|00004630| 03 e9 00 24 00 1b 31 80 | 00 70 43 47 4e 44 b7 31 |...$..1.|.pCGND.1|
|00004640| 80 01 09 43 68 61 73 73 | 69 73 20 67 72 6f 75 6e |...Chass|is groun|
|00004650| 64 00 00 00 03 f5 00 24 | 00 2c 33 80 00 70 47 4e |d......$|.,3..pGN|
|00004660| 44 bd 37 80 01 09 50 69 | 6e 73 20 33 20 26 20 38 |D.7...Pi|ns 3 & 8|
|00004670| 20 63 6f 6e 6e 65 63 74 | 65 64 20 6f 6e 20 4d 61 | connect|ed on Ma|
|00004680| 63 20 73 69 64 65 00 00 | 04 01 00 24 00 1d 35 80 |c side..|...$..5.|
|00004690| 00 70 54 78 44 2d 2c 20 | 52 44 a2 33 80 01 09 52 |.pTxD-, |RD.3...R|
|000046a0| 65 63 65 69 76 65 20 64 | 61 74 61 00 00 00 04 0d |eceive d|ata.....|
|000046b0| 00 24 00 22 37 80 00 70 | 48 53 4b 2c 20 44 54 52 |.$."7..p|HSK, DTR|
|000046c0| a2 32 30 ba 50 72 69 6e | 74 65 72 20 72 65 61 64 |.20.Prin|ter read|
|000046d0| 79 20 6c 69 6e 65 00 00 | 04 19 00 24 00 28 38 80 |y line..|...$.(8.|
|000046e0| 00 70 52 78 44 2b 2c 20 | 47 4e 44 80 01 09 4e 6f |.pRxD+, |GND...No|
|000046f0| 74 20 63 6f 6e 6e 65 63 | 74 65 64 20 6f 6e 20 49 |t connec|ted on I|
|00004700| 57 20 73 69 64 65 00 00 | 04 25 00 24 00 1a 39 80 |W side..|.%.$..9.|
|00004710| 00 70 52 78 44 2d 2c 20 | 53 44 a2 32 80 01 09 53 |.pRxD-, |SD.2...S|
|00004720| 65 6e 64 20 64 61 74 61 | 00 00 04 4b 00 09 00 16 |end data|...K....|
|00004730| c2 c2 45 58 54 45 52 4e | 41 4c 20 44 52 49 56 45 |..EXTERN|AL DRIVE|
|00004740| 20 43 41 42 4c 45 00 00 | 04 5c 00 24 00 26 4d 61 | CABLE..|.\.$.&Ma|
|00004750| 63 20 70 69 6e 20 23 9a | 4e 61 6d 65 b7 44 72 69 |c pin #.|Name.Dri|
|00004760| 76 65 20 70 69 6e 20 23 | a4 44 65 73 63 72 69 70 |ve pin #|.Descrip|
|00004770| 74 69 6f 6e 00 00 04 68 | 00 24 00 1b 31 80 00 70 |tion...h|.$..1..p|
|00004780| 43 47 4e 44 b7 31 80 01 | 20 43 68 61 73 73 69 73 |CGND.1..| Chassis|
|00004790| 20 67 72 6f 75 6e 64 00 | 00 00 04 74 00 24 00 1b | ground.|...t.$..|
|000047a0| 32 80 00 70 43 47 4e 44 | b7 33 80 01 20 43 68 61 |2..pCGND|.3.. Cha|
|000047b0| 73 73 69 73 20 67 72 6f | 75 6e 64 00 00 00 04 80 |ssis gro|und.....|
|000047c0| 00 24 00 1b 33 80 00 70 | 43 47 4e 44 b7 35 80 01 |.$..3..p|CGND.5..|
|000047d0| 20 43 68 61 73 73 69 73 | 20 67 72 6f 75 6e 64 00 | Chassis| ground.|
|000047e0| 00 00 04 8c 00 24 00 1b | 34 80 00 70 43 47 4e 44 |.....$..|4..pCGND|
|000047f0| b7 37 80 01 20 43 68 61 | 73 73 69 73 20 67 72 6f |.7.. Cha|ssis gro|
|00004800| 75 6e 64 00 00 00 04 98 | 00 24 00 0a 36 80 00 70 |und.....|.$..6..p|
|00004810| 2b 35 56 bc 31 31 00 00 | 04 a4 00 24 00 0b 37 80 |+5V.11..|...$..7.|
|00004820| 00 70 2b 31 32 56 b5 31 | 33 00 00 00 04 b0 00 24 |.p+12V.1|3......$|
|00004830| 00 0b 38 80 00 70 2b 31 | 32 56 b5 31 35 00 00 00 |..8..p+1|2V.15...|
|00004840| 04 bc 00 24 00 09 31 30 | be 50 57 4d b7 32 30 00 |...$..10|.PWM.20.|
|00004850| 00 00 04 c8 00 24 00 08 | 31 31 be 50 48 30 bc 32 |.....$..|11.PH0.2|
|00004860| 00 00 04 d4 00 24 00 08 | 31 32 be 50 48 31 bc 34 |.....$..|12.PH1.4|
|00004870| 00 00 04 e0 00 24 00 08 | 31 33 be 50 48 32 bc 36 |.....$..|13.PH2.6|
|00004880| 00 00 04 ec 00 24 00 08 | 31 34 be 50 48 33 bc 38 |.....$..|14.PH3.8|
|00004890| 00 00 04 f8 00 24 00 0b | 31 35 be 57 72 52 65 71 |.....$..|15.WrReq|
|000048a0| b0 31 30 00 00 00 05 04 | 00 24 00 0b 31 36 be 48 |.10.....|.$..16.H|
|000048b0| 64 53 65 6c b6 31 32 00 | 00 00 05 10 00 24 00 0b |dSel.12.|.....$..|
|000048c0| 31 37 be 45 6e 62 6c 32 | b4 31 34 00 00 00 05 1c |17.Enbl2|.14.....|
|000048d0| 00 24 00 0a 31 38 be 52 | 64 80 00 c1 31 36 00 00 |.$..18.R|d...16..|
|000048e0| 05 28 00 24 00 0a 31 39 | be 57 72 80 00 c1 31 38 |.(.$..19|.Wr...18|
|000048f0| 00 00 05 3e 00 86 00 1e | c2 c2 44 69 72 65 63 74 |...>....|..Direct|
|00004900| 20 73 65 72 69 61 6c 20 | 63 6f 6d 6d 75 6e 69 63 | serial |communic|
|00004910| 61 74 69 6f 6e 73 00 00 | 05 4f 00 24 00 4b 54 68 |ations..|.O.$.KTh|
|00004920| 65 20 5a 38 35 33 30 20 | 53 43 43 20 69 73 20 74 |e Z8530 |SCC is t|
|00004930| 68 65 20 63 68 69 70 20 | fd 00 34 70 65 72 66 6f |he chip |..4perfo|
|00004940| 72 6d 73 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 4d |rms all |of the M|
|00004950| 61 63 27 73 20 73 65 72 | 69 61 6c 20 63 6f 6d 6d |ac's ser|ial comm|
|00004960| 75 6e 69 63 61 74 69 6f | 6e 00 00 00 05 5b 00 09 |unicatio|n....[..|
|00004970| 00 58 66 75 6e 63 74 69 | 6f 6e 73 2c 20 69 6e 63 |.Xfuncti|ons, inc|
|00004980| 6c 75 64 69 6e 67 20 74 | 68 65 20 6c 6f 77 65 73 |luding t|he lowes|
|00004990| 74 20 6c 65 76 65 6c 20 | 6f 66 20 74 68 65 20 fc |t level |of the .|
|000049a0| 00 03 54 61 6c 6b 20 70 | 72 6f 74 6f 63 6f 6c 2e |..Talk p|rotocol.|
|000049b0| 20 20 49 66 20 79 6f 75 | 20 6a 75 73 74 20 77 61 | If you| just wa|
|000049c0| 6e 74 20 74 6f 20 68 61 | 63 6b 00 00 05 67 00 09 |nt to ha|ck...g..|
|000049d0| 00 53 6f 75 74 20 61 20 | 71 75 69 63 6b 20 70 72 |.Sout a |quick pr|
|000049e0| 6f 67 72 61 6d 20 75 73 | 69 6e 67 20 74 68 65 20 |ogram us|ing the |
|000049f0| 73 65 72 69 61 6c 20 70 | 6f 72 74 73 20 61 6e 64 |serial p|orts and|
|00004a00| 20 64 6f 6e 27 74 20 77 | 61 6e 74 20 74 6f 20 62 | don't w|ant to b|
|00004a10| 6f 74 68 65 72 20 77 69 | 74 68 20 74 68 65 20 73 |other wi|th the s|
|00004a20| 65 72 69 61 6c 00 00 00 | 05 73 00 09 00 4c 64 72 |erial...|.s...Ldr|
|00004a30| 69 76 65 72 2c 20 49 27 | 6c 6c 20 73 68 6f 77 20 |iver, I'|ll show |
|00004a40| 79 6f 75 20 68 6f 77 20 | 74 6f 20 64 69 73 61 62 |you how |to disab|
|00004a50| 6c 65 20 69 6e 74 65 72 | 72 75 70 74 73 20 28 73 |le inter|rupts (s|
|00004a60| 6f 20 74 68 65 20 6f 70 | 65 72 61 74 69 6e 67 20 |o the op|erating |
|00004a70| fd 00 2c 64 6f 65 73 6e | 27 74 00 00 05 7f 00 09 |..,doesn|'t......|
|00004a80| 00 50 69 6e 74 65 72 66 | 65 72 65 20 77 69 74 68 |.Pinterf|ere with|
|00004a90| 20 79 6f 75 29 2c 20 73 | 65 74 20 74 68 65 20 74 | you), s|et the t|
|00004aa0| 72 61 6e 73 6d 69 73 73 | 69 6f 6e 20 70 61 72 61 |ransmiss|ion para|
|00004ab0| 6d 65 74 65 72 73 2c 20 | 61 6e 64 20 73 65 6e 64 |meters, |and send|
|00004ac0| 20 61 6e 64 20 72 65 63 | 65 69 76 65 20 64 61 74 | and rec|eive dat|
|00004ad0| 61 2e 00 00 05 8b 00 24 | 00 4b 54 68 65 20 53 43 |a......$|.KThe SC|
|00004ae0| 43 20 69 73 20 61 6e 20 | 65 78 74 72 65 6d 65 6c |C is an |extremel|
|00004af0| 79 20 63 6f 6d 70 6c 65 | 78 20 64 65 76 69 63 65 |y comple|x device|
|00004b00| 2c 20 73 6f 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |, so if |you want|
|00004b10| 20 74 6f 20 64 6f 20 72 | 65 61 6c 6c 79 20 73 65 | to do r|eally se|
|00004b20| 72 69 6f 75 73 00 00 00 | 05 97 00 09 00 54 70 72 |rious...|.....Tpr|
|00004b30| 6f 67 72 61 6d 6d 69 6e | 67 2c 20 79 6f 75 20 6e |ogrammin|g, you n|
|00004b40| 65 65 64 20 74 68 65 20 | 74 65 63 68 6e 69 63 61 |eed the |technica|
|00004b50| 6c 20 6d 61 6e 75 61 6c | 2e 20 20 49 74 20 69 73 |l manual|. It is|
|00004b60| 20 61 76 61 69 6c 61 62 | 6c 65 20 66 72 6f 6d 20 | availab|le from |
|00004b70| 5a 69 6c 6f 67 20 66 6f | 72 20 24 36 2e 30 30 20 |Zilog fo|r $6.00 |
|00004b80| 61 74 00 00 05 a3 00 09 | 00 16 74 68 65 20 66 6f |at......|..the fo|
|00004b90| 6c 6c 6f 77 69 6e 67 20 | 61 64 64 72 65 73 73 3a |llowing |address:|
|00004ba0| 00 00 05 af 00 6c 00 0b | 5a 69 6c 6f 67 2c 20 49 |.....l..|Zilog, I|
|00004bb0| 6e 63 2e 00 00 00 05 bb | 00 6c 00 0e 31 33 31 35 |nc......|.l..1315|
|00004bc0| 20 44 65 6c 6c 20 41 76 | 65 2e 00 00 05 c7 00 6c | Dell Av|e......l|
|00004bd0| 00 13 43 61 6d 70 62 65 | 6c 6c 2c 20 43 41 20 20 |..Campbe|ll, CA |
|00004be0| 39 35 30 30 38 00 00 00 | 05 d3 00 6c 00 12 41 74 |95008...|...l..At|
|00004bf0| 74 6e 3a 20 50 75 62 6c | 69 63 61 74 69 6f 6e 73 |tn: Publ|ications|
|00004c00| 00 00 05 eb 00 24 00 46 | 41 73 6b 20 66 6f 72 20 |.....$.F|Ask for |
|00004c10| 74 68 65 20 5a 38 30 33 | 30 2f 5a 38 35 33 30 20 |the Z803|0/Z8530 |
|00004c20| 53 43 43 20 53 65 72 69 | 61 6c 20 43 6f 6d 6d 75 |SCC Seri|al Commu|
|00004c30| 6e 69 63 61 74 69 6f 6e | 73 20 43 6f 6e 74 72 6f |nication|s Contro|
|00004c40| 6c 6c 65 72 20 54 65 63 | 68 6e 69 63 61 6c 00 00 |ller Tec|hnical..|
|00004c50| 05 f7 00 09 00 1f 4d 61 | 6e 75 61 6c 2c 20 70 61 |......Ma|nual, pa|
|00004c60| 72 74 20 6e 75 6d 62 65 | 72 20 30 30 2d 32 30 35 |rt numbe|r 00-205|
|00004c70| 37 2d 30 32 2e 00 00 00 | 06 03 00 24 00 50 49 6e |7-02....|...$.PIn|
|00004c80| 20 6f 72 64 65 72 20 74 | 6f 20 61 6c 6c 6f 77 20 | order t|o allow |
|00004c90| 73 6f 66 74 77 61 72 65 | 20 77 72 69 74 74 65 6e |software| written|
|00004ca0| 20 6f 6e 20 74 68 65 20 | 4d 61 63 20 74 6f 20 72 | on the |Mac to r|
|00004cb0| 75 6e 20 6f 6e 20 6f 74 | 68 65 72 20 6d 61 63 68 |un on ot|her mach|
|00004cc0| 69 6e 65 73 2c 20 6c 69 | 6b 65 20 74 68 65 00 00 |ines, li|ke the..|
|00004cd0| 06 0f 00 09 00 53 4c 69 | 73 61 2c 20 68 61 72 64 |.....SLi|sa, hard|
|00004ce0| 77 61 72 65 20 61 64 64 | 72 65 73 73 65 73 20 73 |ware add|resses s|
|00004cf0| 68 6f 75 6c 64 20 62 65 | 20 72 65 66 65 72 65 6e |hould be| referen|
|00004d00| 63 65 64 20 76 69 61 20 | 61 20 70 6f 69 6e 74 65 |ced via |a pointe|
|00004d10| 72 20 6c 6f 63 61 74 65 | 64 20 69 6e 20 6c 6f 77 |r locate|d in low|
|00004d20| 20 6d 65 6d 6f 72 79 2e | 20 00 00 00 06 1b 00 09 | memory.| .......|
|00004d30| 00 4f 46 6f 72 20 74 68 | 65 20 53 43 43 2c 20 fd |.OFor th|e SCC, .|
|00004d40| 00 2f 61 72 65 20 74 77 | 6f 20 62 61 73 65 20 61 |./are tw|o base a|
|00004d50| 64 64 72 65 73 73 2c 20 | 6f 6e 65 20 66 6f 72 20 |ddress, |one for |
|00004d60| 72 65 61 64 20 6f 70 65 | 72 61 74 69 6f 6e 73 20 |read ope|rations |
|00004d70| 61 6e 64 20 6f 6e 65 20 | 66 6f 72 20 77 72 69 74 |and one |for writ|
|00004d80| 65 00 00 00 06 27 00 09 | 00 0b 6f 70 65 72 61 74 |e....'..|..operat|
|00004d90| 69 6f 6e 73 2e 00 00 00 | 06 3e 00 12 00 35 c6 c6 |ions....|.>...5..|
|00004da0| 53 43 43 52 64 20 20 87 | 45 51 55 20 20 8b 24 31 |SCCRd .|EQU .$1|
|00004db0| 44 38 20 20 20 20 86 53 | 43 43 20 62 61 73 65 20 |D8 .S|CC base |
|00004dc0| 72 65 61 64 20 61 64 64 | 72 20 5b 70 6f 69 6e 74 |read add|r [point|
|00004dd0| 65 72 5d 00 00 00 06 49 | 00 12 00 34 c6 c6 53 43 |er]....I|...4..SC|
|00004de0| 43 57 72 20 20 87 45 51 | 55 20 91 24 31 44 43 20 |CWr .EQ|U .$1DC |
|00004df0| 20 20 8c 53 43 43 20 62 | 61 73 65 20 77 72 69 74 | .SCC b|ase writ|
|00004e00| 65 20 61 64 64 72 20 5b | 70 6f 69 6e 74 65 72 5d |e addr [|pointer]|
|00004e10| 00 00 06 61 00 24 00 49 | 4f 66 20 63 6f 75 72 73 |...a.$.I|Of cours|
|00004e20| 65 20 69 66 20 77 65 20 | 77 65 72 65 20 63 6f 6e |e if we |were con|
|00004e30| 63 65 72 6e 65 64 20 61 | 62 6f 75 74 20 70 6f 72 |cerned a|bout por|
|00004e40| 74 61 62 69 6c 69 74 79 | 20 77 65 20 77 6f 75 6c |tability| we woul|
|00004e50| 64 6e 27 74 20 77 72 69 | 74 65 20 74 6f 20 74 68 |dn't wri|te to th|
|00004e60| 65 00 00 00 06 6d 00 09 | 00 32 68 61 72 64 77 61 |e....m..|.2hardwa|
|00004e70| 72 65 20 64 69 72 65 63 | 74 6c 79 20 61 6e 79 77 |re direc|tly anyw|
|00004e80| 61 79 2c 20 73 6f 20 74 | 68 65 20 fd 00 07 61 64 |ay, so t|he ...ad|
|00004e90| 64 72 65 73 73 65 73 20 | 61 72 65 3a 00 00 06 84 |dresses |are:....|
|00004ea0| 00 12 00 33 c6 c6 73 63 | 63 52 42 61 73 65 20 20 |...3..sc|cRBase |
|00004eb0| 90 45 51 55 20 20 8b 24 | 39 46 46 46 46 38 20 20 |.EQU .$|9FFFF8 |
|00004ec0| 20 87 53 43 43 20 62 61 | 73 65 20 72 65 61 64 20 | .SCC ba|se read |
|00004ed0| 61 64 64 72 65 73 73 00 | 00 00 06 8f 00 12 00 32 |address.|.......2|
|00004ee0| c6 c6 73 63 63 57 42 61 | 73 65 20 89 45 51 55 20 |..sccWBa|se .EQU |
|00004ef0| 90 24 42 46 46 46 46 39 | 20 20 20 88 53 43 43 20 |.$BFFFF9| .SCC |
|00004f00| 62 61 73 65 20 77 72 69 | 74 65 20 61 64 64 72 65 |base wri|te addre|
|00004f10| 73 73 00 00 06 a7 00 24 | 00 4b fb 00 2f 69 73 20 |ss.....$|.K../is |
|00004f20| 61 20 64 61 74 61 20 72 | 65 67 69 73 74 65 72 20 |a data r|egister |
|00004f30| 61 6e 64 20 61 20 63 6f | 6e 74 72 6f 6c 20 72 65 |and a co|ntrol re|
|00004f40| 67 69 73 74 65 72 20 74 | 68 61 74 20 63 61 6e 20 |gister t|hat can |
|00004f50| 62 65 20 61 63 63 65 73 | 73 65 64 20 66 6f 72 20 |be acces|sed for |
|00004f60| 20 65 61 63 68 00 00 00 | 06 b3 00 09 00 55 73 65 | each...|.....Use|
|00004f70| 72 69 61 6c 20 63 68 61 | 6e 6e 65 6c 2c 20 41 20 |rial cha|nnel, A |
|00004f80| 61 6e 64 20 42 2e 20 20 | 41 20 69 73 20 74 68 65 |and B. |A is the|
|00004f90| 20 6d 6f 64 65 6d 20 70 | 6f 72 74 20 61 6e 64 20 | modem p|ort and |
|00004fa0| 42 20 69 73 20 74 68 65 | 20 70 72 69 6e 74 65 72 |B is the| printer|
|00004fb0| 20 70 6f 72 74 2e 20 20 | 54 68 65 20 6f 66 66 73 | port. |The offs|
|00004fc0| 65 74 73 00 00 00 06 bf | 00 09 00 3f 66 72 6f 6d |ets.....|...?from|
|00004fd0| 20 74 68 65 20 62 61 73 | 65 20 61 64 64 72 65 73 | the bas|e addres|
|00004fe0| 73 65 73 20 66 6f 72 20 | 74 68 65 20 63 6f 6e 74 |ses for |the cont|
|00004ff0| 72 6f 6c 20 61 6e 64 20 | 64 61 74 61 20 72 65 67 |rol and |data reg|
|00005000| 69 73 74 65 72 73 20 61 | 72 65 3a 00 00 00 06 d6 |isters a|re:.....|
|00005010| 00 12 00 2f c6 c6 61 44 | 61 74 61 20 20 20 8f 45 |.../..aD|ata .E|
|00005020| 51 55 20 20 36 20 20 20 | 20 87 6f 66 66 73 65 74 |QU 6 | .offset|
|00005030| 20 66 6f 72 20 41 20 63 | 68 61 6e 6e 65 6c 20 64 | for A c|hannel d|
|00005040| 61 74 61 00 00 00 06 e1 | 00 12 00 33 c6 c6 61 43 |ata.....|...3..aC|
|00005050| 74 6c 20 20 20 20 20 89 | 45 51 55 20 20 32 20 20 |tl .|EQU 2 |
|00005060| 20 20 87 6f 66 66 73 65 | 74 20 66 6f 72 20 41 20 | .offse|t for A |
|00005070| 63 68 61 6e 6e 65 6c 20 | 63 6f 6e 74 72 6f 6c 00 |channel |control.|
|00005080| 00 00 06 ec 00 12 00 2f | c6 c6 62 44 61 74 61 20 |......./|..bData |
|00005090| 20 20 8f 45 51 55 20 20 | 34 20 20 20 20 87 6f 66 | .EQU |4 .of|
|000050a0| 66 73 65 74 20 66 6f 72 | 20 42 20 63 68 61 6e 6e |fset for| B chann|
|000050b0| 65 6c 20 64 61 74 61 00 | 00 00 06 f7 00 12 00 33 |el data.|.......3|
|000050c0| c6 c6 62 43 74 6c 20 20 | 20 20 20 89 45 51 55 20 |..bCtl | .EQU |
|000050d0| 20 30 20 20 20 20 87 6f | 66 66 73 65 74 20 66 6f | 0 .o|ffset fo|
|000050e0| 72 20 42 20 63 68 61 6e | 6e 65 6c 20 63 6f 6e 74 |r B chan|nel cont|
|000050f0| 72 6f 6c 00 00 00 07 0f | 00 24 00 50 54 68 65 20 |rol.....|.$.PThe |
|00005100| 72 65 67 69 73 74 65 72 | 73 20 61 72 65 20 61 63 |register|s are ac|
|00005110| 63 65 73 73 65 64 20 62 | 79 20 61 64 64 69 6e 67 |cessed b|y adding|
|00005120| 20 74 68 65 20 6f 66 66 | 73 65 74 20 74 6f 20 74 | the off|set to t|
|00005130| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 62 |he appro|priate b|
|00005140| 61 73 65 20 61 64 64 72 | 65 73 73 2c 00 00 07 1b |ase addr|ess,....|
|00005150| 00 09 00 31 64 65 70 65 | 6e 64 69 6e 67 20 75 70 |...1depe|nding up|
|00005160| 6f 6e 20 77 68 65 74 68 | 65 72 20 79 6f 75 20 77 |on wheth|er you w|
|00005170| 61 6e 74 20 74 6f 20 72 | 65 61 64 20 6f 72 20 77 |ant to r|ead or w|
|00005180| 72 69 74 65 2e 00 00 00 | 07 27 00 24 00 48 fb 00 |rite....|.'.$.H..|
|00005190| 2f 61 72 65 20 73 6f 6d | 65 20 6c 69 6d 69 74 61 |/are som|e limita|
|000051a0| 74 69 6f 6e 73 20 74 6f | 20 68 6f 77 20 79 6f 75 |tions to| how you|
|000051b0| 20 63 61 6e 20 61 63 63 | 65 73 73 20 74 68 65 20 | can acc|ess the |
|000051c0| 53 43 43 2e 20 20 46 69 | 72 73 74 2c 20 20 fd 00 |SCC. Fi|rst, ..|
|000051d0| 2f 69 73 20 61 6e 00 00 | 07 33 00 09 00 4d 38 35 |/is an..|.3...M85|
|000051e0| 33 30 20 74 69 6d 69 6e | 67 20 70 61 72 61 6d 65 |30 timin|g parame|
|000051f0| 74 65 72 20 fd 00 34 6d | 75 73 74 20 62 65 20 6f |ter ..4m|ust be o|
|00005200| 62 73 65 72 76 65 64 20 | 63 61 6c 6c 65 64 20 74 |bserved |called t|
|00005210| 68 65 20 72 65 63 6f 76 | 65 72 79 20 74 69 6d 65 |he recov|ery time|
|00005220| 2c 20 fd 00 34 69 73 20 | 74 68 65 00 00 00 07 3f |, ..4is |the....?|
|00005230| 00 09 00 50 6d 69 6e 69 | 6d 75 6d 20 74 69 6d 65 |...Pmini|mum time|
|00005240| 20 62 65 74 77 65 65 6e | 20 53 43 43 20 6f 70 65 | between| SCC ope|
|00005250| 72 61 74 69 6f 6e 73 2e | 20 20 54 68 69 73 20 74 |rations.| This t|
|00005260| 69 6d 65 20 69 73 20 32 | 2e 32 20 6d 69 63 72 6f |ime is 2|.2 micro|
|00005270| 73 65 63 6f 6e 64 73 20 | fd 00 34 6d 65 61 6e 73 |seconds |..4means|
|00005280| 20 20 69 66 00 00 07 4b | 00 09 00 2f 79 6f 75 20 | if...K|.../you |
|00005290| 68 61 76 65 20 61 20 70 | 6f 6c 6c 69 6e 67 20 6c |have a p|olling l|
|000052a0| 6f 6f 70 20 79 6f 75 20 | 6d 61 79 20 68 61 76 65 |oop you |may have|
|000052b0| 20 74 6f 20 70 61 64 20 | 69 74 2e 00 00 00 07 57 | to pad |it.....W|
|000052c0| 00 24 00 51 54 68 65 20 | 6f 74 68 65 72 20 6c 69 |.$.QThe |other li|
|000052d0| 6d 69 74 61 74 69 6f 6e | 73 20 61 72 65 20 73 70 |mitation|s are sp|
|000052e0| 65 63 69 66 69 63 20 74 | 6f 20 74 68 65 20 4d 61 |ecific t|o the Ma|
|000052f0| 63 69 6e 74 6f 73 68 20 | 61 6e 64 20 61 72 65 20 |cintosh |and are |
|00005300| 74 68 65 20 72 65 73 75 | 6c 74 20 6f 66 20 74 68 |the resu|lt of th|
|00005310| 65 20 77 61 79 00 00 00 | 07 63 00 09 00 54 74 68 |e way...|.c...Tth|
|00005320| 65 20 61 64 64 72 65 73 | 73 20 64 65 63 6f 64 69 |e addres|s decodi|
|00005330| 6e 67 20 77 61 73 20 69 | 6d 70 6c 65 6d 65 6e 74 |ng was i|mplement|
|00005340| 65 64 2e 20 20 52 65 61 | 64 20 6f 70 65 72 61 74 |ed. Rea|d operat|
|00005350| 69 6f 6e 73 20 6d 75 73 | 74 20 62 65 20 62 79 74 |ions mus|t be byt|
|00005360| 65 20 72 65 61 64 73 20 | 6f 66 20 61 6e 20 65 76 |e reads |of an ev|
|00005370| 65 6e 00 00 07 6f 00 09 | 00 56 61 64 64 72 65 73 |en...o..|.Vaddres|
|00005380| 73 20 61 6e 64 20 77 72 | 69 74 65 73 20 6d 75 73 |s and wr|ites mus|
|00005390| 74 20 62 65 20 62 79 74 | 65 20 77 72 69 74 65 73 |t be byt|e writes|
|000053a0| 20 6f 66 20 61 6e 20 6f | 64 64 20 61 64 64 72 65 | of an o|dd addre|
|000053b0| 73 73 2e 20 20 41 6e 20 | 6f 64 64 20 62 79 74 65 |ss. An |odd byte|
|000053c0| 20 72 65 61 64 20 77 69 | 6c 6c 20 72 65 73 65 74 | read wi|ll reset|
|000053d0| 00 00 07 7b 00 09 00 54 | 74 68 65 20 53 43 43 20 |...{...T|the SCC |
|000053e0| 61 6e 64 20 61 6e 79 20 | 77 6f 72 64 20 61 63 63 |and any |word acc|
|000053f0| 65 73 73 20 77 69 6c 6c | 20 73 68 69 66 74 20 74 |ess will| shift t|
|00005400| 68 65 20 70 68 61 73 65 | 20 6f 66 20 74 68 65 20 |he phase| of the |
|00005410| 4d 61 63 27 73 20 68 69 | 67 68 20 66 72 65 71 75 |Mac's hi|gh frequ|
|00005420| 65 6e 63 79 20 74 69 6d | 69 6e 67 2e 00 00 07 91 |ency tim|ing.....|
|00005430| 00 7f 00 1d c2 c2 5a 38 | 35 33 30 20 54 45 43 48 |......Z8|530 TECH|
|00005440| 4e 49 43 41 4c 20 44 45 | 53 43 52 49 50 54 49 4f |NICAL DE|SCRIPTIO|
|00005450| 4e 00 00 00 07 a2 00 24 | 00 4a 54 68 65 20 6f 70 |N......$|.JThe op|
|00005460| 65 72 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 53 |eration |of the S|
|00005470| 43 43 20 69 73 20 63 6f | 6e 74 72 6f 6c 6c 65 64 |CC is co|ntrolled|
|00005480| 20 62 79 20 31 36 20 77 | 72 69 74 65 2d 6f 6e 6c | by 16 w|rite-onl|
|00005490| 79 20 72 65 67 69 73 74 | 65 72 73 20 61 6e 64 20 |y regist|ers and |
|000054a0| 6e 69 6e 65 00 00 07 ae | 00 09 00 59 72 65 61 64 |nine....|...Yread|
|000054b0| 2d 6f 6e 6c 79 20 72 65 | 67 69 73 74 65 72 73 2e |-only re|gisters.|
|000054c0| 20 20 41 6c 6c 20 72 65 | 67 69 73 74 65 72 73 20 | All re|gisters |
|000054d0| 61 72 65 20 38 20 62 69 | 74 73 20 77 69 64 65 2c |are 8 bi|ts wide,|
|000054e0| 20 61 6c 74 68 6f 75 67 | 68 20 73 6f 6d 65 20 62 | althoug|h some b|
|000054f0| 69 74 73 20 20 6d 61 79 | 20 6e 6f 74 20 62 65 20 |its may| not be |
|00005500| 75 73 65 64 2e 00 00 00 | 07 ba 00 09 00 58 4d 6f |used....|.....XMo|
|00005510| 73 74 20 6f 66 20 74 68 | 65 73 65 20 72 65 67 69 |st of th|ese regi|
|00005520| 73 74 65 72 73 20 61 72 | 65 20 64 75 70 6c 69 63 |sters ar|e duplic|
|00005530| 61 74 65 64 20 66 6f 72 | 20 65 61 63 68 20 6f 66 |ated for| each of|
|00005540| 20 74 68 65 20 74 77 6f | 20 63 68 61 6e 6e 65 6c | the two| channel|
|00005550| 73 2c 20 62 75 74 20 73 | 6f 6d 65 20 61 72 65 20 |s, but s|ome are |
|00005560| 73 68 61 72 65 64 00 00 | 07 c6 00 09 00 08 62 79 |shared..|......by|
|00005570| 20 62 6f 74 68 2e 00 00 | 07 d2 00 24 00 4a 49 27 | both...|...$.JI'|
|00005580| 6d 20 6f 6e 6c 79 20 67 | 6f 69 6e 67 20 74 6f 20 |m only g|oing to |
|00005590| 64 65 73 63 72 69 62 65 | 20 74 68 65 20 72 65 67 |describe| the reg|
|000055a0| 69 73 74 65 72 73 20 74 | 68 61 74 20 77 69 6c 6c |isters t|hat will|
|000055b0| 20 61 6c 6c 6f 77 20 79 | 6f 75 20 74 6f 20 63 68 | allow y|ou to ch|
|000055c0| 61 6e 67 65 20 74 68 65 | 00 00 07 de 00 09 00 52 |ange the|.......R|
|000055d0| 74 72 61 6e 73 6d 69 73 | 73 69 6f 6e 20 70 61 72 |transmis|sion par|
|000055e0| 61 6d 65 74 65 72 73 20 | 61 6e 64 20 73 65 6e 64 |ameters |and send|
|000055f0| 20 61 6e 64 20 72 65 63 | 65 69 76 65 20 64 61 74 | and rec|eive dat|
|00005600| 61 2e 20 20 53 6f 6d 65 | 20 6f 66 20 74 68 65 20 |a. Some| of the |
|00005610| 72 65 67 69 73 74 65 72 | 73 20 6d 61 79 20 68 61 |register|s may ha|
|00005620| 76 65 00 00 07 ea 00 09 | 00 56 66 75 6e 63 74 69 |ve......|.Vfuncti|
|00005630| 6f 6e 73 20 69 6e 20 61 | 64 64 69 74 69 6f 6e 20 |ons in a|ddition |
|00005640| 74 6f 20 74 68 65 20 6f | 6e 65 73 20 49 20 64 65 |to the o|nes I de|
|00005650| 73 63 72 69 62 65 2c 20 | 73 6f 20 79 6f 75 27 6c |scribe, |so you'l|
|00005660| 6c 20 6e 65 65 64 20 74 | 68 65 20 6d 61 6e 75 61 |l need t|he manua|
|00005670| 6c 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |l if you| want to|
|00005680| 00 00 07 f6 00 09 00 23 | 65 78 70 6c 6f 72 65 20 |.......#|explore |
|00005690| 61 6c 6c 20 74 68 65 20 | 53 43 43 27 73 20 63 61 |all the |SCC's ca|
|000056a0| 70 61 62 69 6c 69 74 69 | 65 73 2e 00 00 00 08 02 |pabiliti|es......|
|000056b0| 00 24 00 48 57 72 69 74 | 65 20 72 65 67 69 73 74 |.$.HWrit|e regist|
|000056c0| 65 72 20 30 20 28 61 62 | 62 72 65 76 69 61 74 65 |er 0 (ab|breviate|
|000056d0| 64 20 57 52 30 29 20 69 | 73 20 74 68 65 20 63 6f |d WR0) i|s the co|
|000056e0| 6d 6d 61 6e 64 20 72 65 | 67 69 73 74 65 72 2e 20 |mmand re|gister. |
|000056f0| 20 fb 00 2f 69 73 20 61 | 20 57 52 30 00 00 08 0e | ../is a| WR0....|
|00005700| 00 09 00 56 66 6f 72 20 | 65 61 63 68 20 63 68 61 |...Vfor |each cha|
|00005710| 6e 6e 65 6c 2e 20 20 54 | 68 65 20 70 72 69 6d 61 |nnel. T|he prima|
|00005720| 72 79 20 66 75 6e 63 74 | 69 6f 6e 20 6f 66 20 74 |ry funct|ion of t|
|00005730| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 72 65 67 69 73 |he comma|nd regis|
|00005740| 74 65 72 20 69 73 20 74 | 6f 20 61 63 74 20 61 73 |ter is t|o act as|
|00005750| 20 61 20 70 6f 69 6e 74 | 65 72 00 00 08 1a 00 09 | a point|er......|
|00005760| 00 1b 74 6f 20 61 6c 6c | 20 74 68 65 20 6f 74 68 |..to all| the oth|
|00005770| 65 72 20 72 65 67 69 73 | 74 65 72 73 2e 00 00 00 |er regis|ters....|
|00005780| 08 26 00 24 00 4b 54 6f | 20 61 63 63 65 73 73 20 |.&.$.KTo| access |
|00005790| 61 6e 79 20 6f 74 68 65 | 72 20 72 65 67 69 73 74 |any othe|r regist|
|000057a0| 65 72 20 65 78 63 65 70 | 74 20 74 68 65 20 64 61 |er excep|t the da|
|000057b0| 74 61 20 72 65 67 69 73 | 74 65 72 73 2c 20 79 6f |ta regis|ters, yo|
|000057c0| 75 20 66 69 72 73 74 20 | 77 72 69 74 65 20 74 68 |u first |write th|
|000057d0| 65 00 00 00 08 32 00 09 | 00 53 72 65 67 69 73 74 |e....2..|.Sregist|
|000057e0| 65 72 20 6e 75 6d 62 65 | 72 20 79 6f 75 20 77 61 |er numbe|r you wa|
|000057f0| 6e 74 20 74 6f 20 61 63 | 63 65 73 73 20 69 6e 20 |nt to ac|cess in |
|00005800| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 72 65 67 69 |the comm|and regi|
|00005810| 73 74 65 72 2e 20 20 54 | 68 65 20 6e 65 78 74 20 |ster. T|he next |
|00005820| 72 65 61 64 20 6f 72 20 | 77 72 69 74 65 00 00 00 |read or |write...|
|00005830| 08 3e 00 09 00 55 77 69 | 6c 6c 20 62 65 20 64 69 |.>...Uwi|ll be di|
|00005840| 72 65 63 74 65 64 20 74 | 6f 20 74 68 61 74 20 72 |rected t|o that r|
|00005850| 65 67 69 73 74 65 72 2e | 20 20 41 74 20 74 68 65 |egister.| At the|
|00005860| 20 63 6f 6e 63 6c 75 73 | 69 6f 6e 20 6f 66 20 74 | conclus|ion of t|
|00005870| 68 69 73 20 72 65 61 64 | 20 6f 72 20 77 72 69 74 |his read| or writ|
|00005880| 65 20 63 79 63 6c 65 20 | 74 68 65 00 00 00 08 4a |e cycle |the....J|
|00005890| 00 09 00 50 70 6f 69 6e | 74 65 72 20 62 69 74 73 |...Ppoin|ter bits|
|000058a0| 20 77 69 6c 6c 20 62 65 | 20 72 65 73 65 74 20 74 | will be| reset t|
|000058b0| 6f 20 7a 65 72 6f 2c 20 | 73 6f 20 74 68 65 20 6e |o zero, |so the n|
|000058c0| 65 78 74 20 77 72 69 74 | 65 20 77 69 6c 6c 20 62 |ext writ|e will b|
|000058d0| 65 20 74 6f 20 57 52 30 | 2e 20 20 54 68 65 20 6c |e to WR0|. The l|
|000058e0| 65 61 73 74 00 00 08 56 | 00 09 00 56 73 69 67 6e |east...V|...Vsign|
|000058f0| 69 66 69 63 61 6e 74 20 | 34 20 62 69 74 73 20 6f |ificant |4 bits o|
|00005900| 66 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 72 65 |f the co|mmand re|
|00005910| 67 69 73 74 65 72 20 28 | 44 33 20 2d 20 44 30 29 |gister (|D3 - D0)|
|00005920| 20 61 72 65 20 75 73 65 | 64 20 61 73 20 74 68 65 | are use|d as the|
|00005930| 20 70 6f 69 6e 74 65 72 | 20 62 69 74 73 2e 20 20 | pointer| bits. |
|00005940| 44 37 00 00 08 62 00 09 | 00 38 2d 20 44 34 20 6d |D7...b..|.8- D4 m|
|00005950| 75 73 74 20 62 65 20 7a | 65 72 6f 73 20 77 68 65 |ust be z|eros whe|
|00005960| 6e 20 77 72 69 74 69 6e | 67 20 74 6f 20 74 68 65 |n writin|g to the|
|00005970| 20 70 6f 69 6e 74 65 72 | 20 72 65 67 69 73 74 65 | pointer| registe|
|00005980| 72 2e 00 00 08 6e 00 24 | 00 4b 54 72 61 6e 73 6d |r....n.$|.KTransm|
|00005990| 69 74 20 61 6e 64 20 72 | 65 63 65 69 76 65 20 69 |it and r|eceive i|
|000059a0| 6e 74 65 72 72 75 70 74 | 73 20 61 72 65 20 65 6e |nterrupt|s are en|
|000059b0| 61 62 6c 65 64 20 69 6e | 20 57 52 31 2e 20 20 54 |abled in| WR1. T|
|000059c0| 6f 20 64 69 73 61 62 6c | 65 20 69 6e 74 65 72 72 |o disabl|e interr|
|000059d0| 75 70 74 73 2c 00 00 00 | 08 7a 00 09 00 57 77 72 |upts,...|.z...Wwr|
|000059e0| 69 74 65 20 61 20 24 30 | 31 20 74 6f 20 74 68 69 |ite a $0|1 to thi|
|000059f0| 73 20 72 65 67 69 73 74 | 65 72 2e 20 20 54 68 69 |s regist|er. Thi|
|00005a00| 73 20 64 69 73 61 62 6c | 65 73 20 74 72 61 6e 73 |s disabl|es trans|
|00005a10| 6d 69 74 20 61 6e 64 20 | 72 65 63 65 69 76 65 20 |mit and |receive |
|00005a20| 69 6e 74 65 72 72 75 70 | 74 73 20 62 75 74 20 6c |interrup|ts but l|
|00005a30| 65 61 76 65 73 00 00 00 | 08 86 00 09 00 55 65 78 |eaves...|.....Uex|
|00005a40| 74 65 72 6e 61 6c 2f 73 | 74 61 74 75 73 20 69 6e |ternal/s|tatus in|
|00005a50| 74 65 72 72 75 70 74 73 | 20 65 6e 61 62 6c 65 64 |terrupts| enabled|
|00005a60| 2e 20 20 54 68 65 20 65 | 78 74 65 72 6e 61 6c 2f |. The e|xternal/|
|00005a70| 73 74 61 74 75 73 20 69 | 6e 74 65 72 72 75 70 74 |status i|nterrupt|
|00005a80| 20 69 73 20 75 73 65 64 | 20 61 73 20 61 20 6d 6f | is used| as a mo|
|00005a90| 75 73 65 00 00 00 08 92 | 00 09 00 38 69 6e 70 75 |use.....|...8inpu|
|00005aa0| 74 20 61 6e 64 20 69 66 | 20 69 74 20 69 73 20 74 |t and if| it is t|
|00005ab0| 75 72 6e 65 64 20 6f 66 | 66 2c 20 74 68 65 20 6d |urned of|f, the m|
|00005ac0| 6f 75 73 65 20 77 69 6c | 6c 20 66 72 65 65 7a 65 |ouse wil|l freeze|
|00005ad0| 20 75 70 2e 00 00 08 9e | 00 24 00 4d 57 52 33 20 | up.....|.$.MWR3 |
|00005ae0| 63 6f 6e 74 72 6f 6c 73 | 20 73 6f 6d 65 20 6f 66 |controls| some of|
|00005af0| 20 74 68 65 20 72 65 63 | 65 69 76 65 20 70 61 72 | the rec|eive par|
|00005b00| 61 6d 65 74 65 72 73 2e | 20 44 37 20 61 6e 64 20 |ameters.| D7 and |
|00005b10| 44 36 20 73 65 74 20 74 | 68 65 20 6e 75 6d 62 65 |D6 set t|he numbe|
|00005b20| 72 20 6f 66 20 62 69 74 | 73 00 00 00 08 aa 00 09 |r of bit|s.......|
|00005b30| 00 52 70 65 72 20 63 68 | 61 72 61 63 74 65 72 2e |.Rper ch|aracter.|
|00005b40| 20 20 30 30 20 3d 20 38 | 20 62 69 74 73 2c 20 30 | 00 = 8| bits, 0|
|00005b50| 31 20 3d 20 37 20 62 69 | 74 73 2c 20 31 30 20 3d |1 = 7 bi|ts, 10 =|
|00005b60| 20 36 20 62 69 74 73 2c | 20 61 6e 64 20 30 30 20 | 6 bits,| and 00 |
|00005b70| 3d 20 35 20 62 69 74 73 | 2e 20 20 44 30 20 69 73 |= 5 bits|. D0 is|
|00005b80| 20 74 68 65 00 00 08 b6 | 00 09 00 58 72 65 63 65 | the....|...Xrece|
|00005b90| 69 76 65 72 20 65 6e 61 | 62 6c 65 2e 20 20 49 66 |iver ena|ble. If|
|00005ba0| 20 44 30 20 69 73 20 73 | 65 74 20 74 6f 20 31 20 | D0 is s|et to 1 |
|00005bb0| 74 68 65 20 72 65 63 65 | 69 76 65 72 20 69 73 20 |the rece|iver is |
|00005bc0| 65 6e 61 62 6c 65 64 20 | 77 68 69 6c 65 20 61 20 |enabled |while a |
|00005bd0| 30 20 69 6e 20 44 30 20 | 64 69 73 61 62 6c 65 73 |0 in D0 |disables|
|00005be0| 20 69 74 2e 00 00 08 c2 | 00 24 00 4f 57 52 34 20 | it.....|.$.OWR4 |
|00005bf0| 63 6f 6e 74 61 69 6e 73 | 20 63 6f 6e 74 72 6f 6c |contains| control|
|00005c00| 20 62 69 74 73 20 66 6f | 72 20 62 6f 74 68 20 74 | bits fo|r both t|
|00005c10| 68 65 20 72 65 63 65 69 | 76 65 72 20 61 6e 64 20 |he recei|ver and |
|00005c20| 74 68 65 20 74 72 61 6e | 73 6d 69 74 74 65 72 2e |the tran|smitter.|
|00005c30| 20 20 44 37 20 61 6e 64 | 20 44 36 00 00 00 08 ce | D7 and| D6.....|
|00005c40| 00 09 00 4f 63 6f 6e 74 | 72 6f 6c 20 74 68 65 20 |...Ocont|rol the |
|00005c50| 69 6e 74 65 72 6e 61 6c | 20 63 6c 6f 63 6b 20 70 |internal| clock p|
|00005c60| 72 65 73 63 61 6c 65 72 | 20 fd 00 34 64 69 76 69 |rescaler| ..4divi|
|00005c70| 64 65 73 20 74 68 65 20 | 69 6e 63 6f 6d 69 6e 67 |des the |incoming|
|00005c80| 20 33 2e 36 38 36 34 20 | 4d 48 7a 20 63 6c 6f 63 | 3.6864 |MHz cloc|
|00005c90| 6b 2e 20 00 00 00 08 da | 00 09 00 59 54 68 65 73 |k. .....|...YThes|
|00005ca0| 65 20 61 72 65 20 73 65 | 74 20 74 6f 20 30 31 20 |e are se|t to 01 |
|00005cb0| 66 6f 72 20 61 20 64 69 | 76 69 64 65 20 62 79 20 |for a di|vide by |
|00005cc0| 31 36 20 72 61 74 69 6f | 2e 20 20 44 33 20 61 6e |16 ratio|. D3 an|
|00005cd0| 64 20 44 32 20 73 65 74 | 20 74 68 65 20 6e 75 6d |d D2 set| the num|
|00005ce0| 62 65 72 20 6f 66 20 73 | 74 6f 70 20 62 69 74 73 |ber of s|top bits|
|00005cf0| 2e 20 20 31 31 00 00 00 | 08 e6 00 09 00 57 3d 20 |. 11...|.....W= |
|00005d00| 32 20 73 74 6f 70 20 62 | 69 74 73 2c 20 31 30 20 |2 stop b|its, 10 |
|00005d10| 3d 20 31 2e 35 20 73 74 | 6f 70 20 62 69 74 73 2c |= 1.5 st|op bits,|
|00005d20| 20 61 6e 64 20 30 31 20 | 3d 20 31 20 73 74 6f 70 | and 01 |= 1 stop|
|00005d30| 20 62 69 74 2e 20 20 30 | 30 20 69 73 20 75 73 65 | bit. 0|0 is use|
|00005d40| 64 20 77 68 65 6e 20 74 | 68 65 20 63 68 69 70 20 |d when t|he chip |
|00005d50| 69 73 20 69 6e 00 00 00 | 08 f2 00 09 00 52 73 79 |is in...|.....Rsy|
|00005d60| 6e 63 68 72 6f 6e 6f 75 | 73 20 6d 6f 64 65 2e 20 |nchronou|s mode. |
|00005d70| 20 44 30 20 65 6e 61 62 | 6c 65 73 20 70 61 72 69 | D0 enab|les pari|
|00005d80| 74 79 20 67 65 6e 65 72 | 61 74 69 6f 6e 2f 63 68 |ty gener|ation/ch|
|00005d90| 65 63 6b 69 6e 67 20 69 | 66 20 73 65 74 2c 20 61 |ecking i|f set, a|
|00005da0| 6e 64 20 44 31 20 64 65 | 74 65 72 6d 69 6e 65 73 |nd D1 de|termines|
|00005db0| 00 00 08 fe 00 09 00 57 | 77 68 65 74 68 65 72 20 |.......W|whether |
|00005dc0| 70 61 72 69 74 79 20 77 | 69 6c 6c 20 62 65 20 65 |parity w|ill be e|
|00005dd0| 76 65 6e 20 28 44 31 20 | 73 65 74 29 20 6f 72 20 |ven (D1 |set) or |
|00005de0| 6f 64 64 20 28 44 31 20 | 63 6c 65 61 72 29 2e 20 |odd (D1 |clear). |
|00005df0| 20 44 31 20 69 73 20 69 | 67 6e 6f 72 65 64 20 69 | D1 is i|gnored i|
|00005e00| 66 20 70 61 72 69 74 79 | 20 69 73 20 6e 6f 74 00 |f parity| is not.|
|00005e10| 00 00 09 0a 00 09 00 08 | 65 6e 61 62 6c 65 64 2e |........|enabled.|
|00005e20| 00 00 09 16 00 24 00 4d | 57 52 35 20 69 73 20 74 |.....$.M|WR5 is t|
|00005e30| 68 65 20 63 6f 75 6e 74 | 65 72 70 61 72 74 20 6f |he count|erpart o|
|00005e40| 66 20 57 52 33 20 66 6f | 72 20 74 68 65 20 74 72 |f WR3 fo|r the tr|
|00005e50| 61 6e 73 6d 69 74 20 70 | 61 72 61 6d 65 74 65 72 |ansmit p|arameter|
|00005e60| 73 2e 20 20 44 36 20 61 | 6e 64 20 44 35 20 63 6f |s. D6 a|nd D5 co|
|00005e70| 6e 74 72 6f 6c 00 00 00 | 09 22 00 09 00 56 74 68 |ntrol...|."...Vth|
|00005e80| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 69 74 73 |e number| of bits|
|00005e90| 20 70 65 72 20 63 68 61 | 72 61 63 74 65 72 20 61 | per cha|racter a|
|00005ea0| 6e 64 20 6f 70 65 72 61 | 74 65 20 69 64 65 6e 74 |nd opera|te ident|
|00005eb0| 69 63 61 6c 6c 79 20 74 | 6f 20 44 37 20 61 6e 64 |ically t|o D7 and|
|00005ec0| 20 44 36 20 6f 66 20 57 | 52 33 20 28 69 2e 65 20 | D6 of W|R3 (i.e |
|00005ed0| 30 30 20 3d 00 00 09 2e | 00 09 00 59 38 20 62 69 |00 =....|...Y8 bi|
|00005ee0| 74 73 2c 20 2e 20 2e 20 | 29 2e 20 20 44 33 20 65 |ts, . . |). D3 e|
|00005ef0| 6e 61 62 6c 65 73 20 74 | 68 65 20 74 72 61 6e 73 |nables t|he trans|
|00005f00| 6d 69 74 74 65 72 20 69 | 66 20 73 65 74 2e 20 20 |mitter i|f set. |
|00005f10| 44 31 20 65 6e 61 62 6c | 65 73 20 74 68 65 20 52 |D1 enabl|es the R|
|00005f20| 54 53 20 6f 75 74 70 75 | 74 20 6c 69 6e 65 20 6f |TS outpu|t line o|
|00005f30| 6e 20 74 68 65 00 00 00 | 09 3a 00 09 00 52 63 68 |n the...|.:...Rch|
|00005f40| 69 70 2c 20 fd 00 34 69 | 73 20 74 69 65 64 20 74 |ip, ..4i|s tied t|
|00005f50| 6f 20 74 68 65 20 65 6e | 61 62 6c 65 20 69 6e 70 |o the en|able inp|
|00005f60| 75 74 20 6f 66 20 74 68 | 65 20 52 53 2d 34 32 32 |ut of th|e RS-422|
|00005f70| 20 64 72 69 76 65 72 2e | 20 20 44 31 20 6d 75 73 | driver.| D1 mus|
|00005f80| 74 20 62 65 20 73 65 74 | 20 66 6f 72 20 74 68 65 |t be set| for the|
|00005f90| 00 00 09 46 00 09 00 12 | 64 72 69 76 65 72 20 74 |...F....|driver t|
|00005fa0| 6f 20 6f 70 65 72 61 74 | 65 2e 00 00 09 52 00 24 |o operat|e....R.$|
|00005fb0| 00 51 57 52 38 20 69 73 | 20 74 68 65 20 74 72 61 |.QWR8 is| the tra|
|00005fc0| 6e 73 6d 69 74 20 62 75 | 66 66 65 72 20 72 65 67 |nsmit bu|ffer reg|
|00005fd0| 69 73 74 65 72 2e 20 20 | 4f 6e 63 65 20 74 68 65 |ister. |Once the|
|00005fe0| 20 74 72 61 6e 73 6d 69 | 74 74 65 72 20 69 73 20 | transmi|tter is |
|00005ff0| 63 6f 6e 66 69 67 75 72 | 65 64 20 64 61 74 61 20 |configur|ed data |
|00006000| 63 61 6e 00 00 00 09 5e | 00 09 00 5a 62 65 20 6f |can....^|...Zbe o|
|00006010| 75 74 70 75 74 20 62 79 | 20 77 72 69 74 69 6e 67 |utput by| writing|
|00006020| 20 74 6f 20 20 63 6f 6e | 74 72 6f 6c 20 72 65 67 | to con|trol reg|
|00006030| 69 73 74 65 72 20 38 2c | 20 6f 72 20 62 79 20 77 |ister 8,| or by w|
|00006040| 72 69 74 69 6e 67 20 64 | 69 72 65 63 74 6c 79 20 |riting d|irectly |
|00006050| 74 6f 20 74 68 65 20 64 | 61 74 61 20 72 65 67 69 |to the d|ata regi|
|00006060| 73 74 65 72 2e 20 00 00 | 09 6a 00 09 00 4a 57 72 |ster. ..|.j...JWr|
|00006070| 69 74 69 6e 67 20 74 6f | 20 74 68 65 20 64 61 74 |iting to| the dat|
|00006080| 61 20 72 65 67 69 73 74 | 65 72 20 73 61 76 65 73 |a regist|er saves|
|00006090| 20 61 6e 20 65 78 74 72 | 61 20 77 72 69 74 65 20 | an extr|a write |
|000060a0| 74 6f 20 74 68 65 20 70 | 6f 69 6e 74 65 72 20 72 |to the p|ointer r|
|000060b0| 65 67 69 73 74 65 72 2e | 00 00 09 76 00 24 00 48 |egister.|...v.$.H|
|000060c0| 57 52 39 20 69 73 20 74 | 68 65 20 6d 61 73 74 65 |WR9 is t|he maste|
|000060d0| 72 20 69 6e 74 65 72 72 | 75 70 74 20 63 6f 6e 74 |r interr|upt cont|
|000060e0| 72 6f 6c 20 72 65 67 69 | 73 74 65 72 2e 20 20 fb |rol regi|ster. .|
|000060f0| 00 2f 69 73 20 6f 6e 6c | 79 20 6f 6e 65 20 57 52 |./is onl|y one WR|
|00006100| 39 20 fd 00 34 63 61 6e | 00 00 09 82 00 09 00 53 |9 ..4can|.......S|
|00006110| 62 65 20 61 63 63 65 73 | 73 65 64 20 66 72 6f 6d |be acces|sed from|
|00006120| 20 65 69 74 68 65 72 20 | 74 68 65 20 41 20 6f 72 | either |the A or|
|00006130| 20 42 20 63 68 61 6e 6e | 65 6c 2e 20 20 44 37 20 | B chann|el. D7 |
|00006140| 61 6e 64 20 44 36 20 73 | 65 6c 65 63 74 20 63 68 |and D6 s|elect ch|
|00006150| 69 70 20 72 65 73 65 74 | 20 63 6f 6d 6d 61 6e 64 |ip reset| command|
|00006160| 73 2e 20 00 00 00 09 8e | 00 09 00 59 57 72 69 74 |s. .....|...YWrit|
|00006170| 69 6e 67 20 61 20 31 31 | 20 77 69 6c 6c 20 66 6f |ing a 11| will fo|
|00006180| 72 63 65 20 61 20 68 61 | 72 64 77 61 72 65 20 72 |rce a ha|rdware r|
|00006190| 65 73 65 74 20 6f 66 20 | 74 68 65 20 63 68 69 70 |eset of |the chip|
|000061a0| 2e 20 20 41 20 31 30 20 | 77 69 6c 6c 20 72 65 73 |. A 10 |will res|
|000061b0| 65 74 20 63 68 61 6e 6e | 65 6c 20 41 20 61 6e 64 |et chann|el A and|
|000061c0| 20 61 20 30 31 00 00 00 | 09 9a 00 09 00 53 77 69 | a 01...|.....Swi|
|000061d0| 6c 6c 20 72 65 73 65 74 | 20 63 68 61 6e 6e 65 6c |ll reset| channel|
|000061e0| 20 42 2e 20 20 41 20 30 | 30 20 68 61 73 20 6e 6f | B. A 0|0 has no|
|000061f0| 20 65 66 66 65 63 74 2e | 20 20 44 33 20 69 73 20 | effect.| D3 is |
|00006200| 74 68 65 20 6d 61 73 74 | 65 72 20 69 6e 74 65 72 |the mast|er inter|
|00006210| 72 75 70 74 20 65 6e 61 | 62 6c 65 20 62 69 74 2e |rupt ena|ble bit.|
|00006220| 20 00 00 00 09 a6 00 09 | 00 55 43 6c 65 61 72 69 | .......|.UCleari|
|00006230| 6e 67 20 74 68 69 73 20 | 62 69 74 20 77 69 6c 6c |ng this |bit will|
|00006240| 20 70 72 fd 00 15 74 68 | 65 20 53 43 43 20 66 72 | pr...th|e SCC fr|
|00006250| 6f 6d 20 67 65 6e 65 72 | 61 74 69 6e 67 20 61 6e |om gener|ating an|
|00006260| 79 20 69 6e 74 65 72 72 | 75 70 74 73 2e 20 20 4f |y interr|upts. O|
|00006270| 6e 63 65 20 61 67 61 69 | 6e 2c 20 74 68 69 73 00 |nce agai|n, this.|
|00006280| 00 00 09 b2 00 09 00 23 | 77 69 6c 6c 20 63 61 75 |.......#|will cau|
|00006290| 73 65 20 74 68 65 20 6d | 6f 75 73 65 20 74 6f 20 |se the m|ouse to |
|000062a0| 66 72 65 65 7a 65 20 75 | 70 20 2e 00 00 00 09 be |freeze u|p ......|
|000062b0| 00 24 00 4d 57 52 31 31 | 20 69 73 20 74 68 65 20 |.$.MWR11| is the |
|000062c0| 63 6c 6f 63 6b 20 6d 6f | 64 65 20 63 6f 6e 74 72 |clock mo|de contr|
|000062d0| 6f 6c 20 72 65 67 69 73 | 74 65 72 20 fd 00 34 73 |ol regis|ter ..4s|
|000062e0| 65 6c 65 63 74 73 20 74 | 68 65 20 73 6f 75 72 63 |elects t|he sourc|
|000062f0| 65 20 6f 66 20 74 68 65 | 20 74 72 61 6e 73 6d 69 |e of the| transmi|
|00006300| 74 00 00 00 09 ca 00 09 | 00 57 61 6e 64 20 72 65 |t.......|.Wand re|
|00006310| 63 65 69 76 65 20 63 6c | 6f 63 6b 73 2e 20 20 54 |ceive cl|ocks. T|
|00006320| 6f 20 75 73 65 20 74 68 | 65 20 69 6e 74 65 72 6e |o use th|e intern|
|00006330| 61 6c 20 62 61 75 64 20 | 72 61 74 65 20 67 65 6e |al baud |rate gen|
|00006340| 65 72 61 74 6f 72 20 73 | 65 74 20 44 36 20 61 6e |erator s|et D6 an|
|00006350| 64 20 44 34 20 68 69 67 | 68 20 61 6e 64 20 61 6c |d D4 hig|h and al|
|00006360| 6c 00 00 00 09 d6 00 09 | 00 0f 6f 74 68 65 72 20 |l.......|..other |
|00006370| 62 69 74 73 20 6c 6f 77 | 2e 00 00 00 09 e2 00 24 |bits low|.......$|
|00006380| 00 4b 57 52 31 32 20 61 | 6e 64 20 57 52 31 33 20 |.KWR12 a|nd WR13 |
|00006390| 61 72 65 20 74 68 65 20 | 74 69 6d 65 20 63 6f 6e |are the |time con|
|000063a0| 73 74 61 6e 74 73 20 66 | 6f 72 20 74 68 65 20 69 |stants f|or the i|
|000063b0| 6e 74 65 72 6e 61 6c 20 | 62 61 75 64 20 72 61 74 |nternal |baud rat|
|000063c0| 65 20 67 65 6e 65 72 61 | 74 6f 72 2e 20 00 00 00 |e genera|tor. ...|
|000063d0| 09 ee 00 09 00 54 54 68 | 65 20 62 61 75 64 20 72 |.....TTh|e baud r|
|000063e0| 61 74 65 20 67 65 6e 65 | 72 61 74 6f 72 20 69 73 |ate gene|rator is|
|000063f0| 20 61 20 63 6f 75 6e 74 | 65 72 20 fd 00 34 69 73 | a count|er ..4is|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.